David Miller Posted January 5, 2010 Share Posted January 5, 2010 Is it possible to set a tab stop based on whether variable x contains anything or not and variable y contains anything or not? The logic: setTab1 = if field direct is empty tabstops are 0;1224,Left,,; setTab2 = if field direct is not empty tabstops are 0;2448,Left,,; and if field phone is empty return nothing else return my phone label + a tab character at the proper setting based on field direct (above) Sorry, I'm having problems inserting any actual code. Thanks! Link to comment Share on other sites More sharing options...
esmith Posted January 5, 2010 Share Posted January 5, 2010 var setTab = (Field("Direct") == "") ? "0;1224,Left,,," : "0;2448,Left,,,"; return (Field("Phone") == "") ? "" : MyPhoneLabel + "<p tabstops=\"" + setTab + "\">" + ...; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.