Jump to content

Vary Tab Stops in a Rule


David Miller

Recommended Posts

Posted

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!

Posted
var setTab = (Field("Direct") == "") ? "0;1224,Left,,," : "0;2448,Left,,,";
return (Field("Phone") == "") ? "" : MyPhoneLabel + "<p tabstops=\"" + setTab + "\">" + ...;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...