rookjess Posted February 27, 2012 Share Posted February 27, 2012 I am trying to write a rule with if, or, then, else. I can get an if, then, else - but no or. Basically the below is the if 'regionnbr' starts with 9; then ... but what i want is: if 'regionnbr' starts with 9 or is 110218; then ... if (Left(Field("REGIONNBR"),Len(String("9"))) == String("9")) { return "<span>" + Resource("9#####").content + "</span>"; } else { return "<span>" + Resource("all but 9#####").content + "</span>"; } return ""; Link to comment Share on other sites More sharing options...
scubajbc Posted February 27, 2012 Share Posted February 27, 2012 || (2 pipes) means or so... if (Left(Field("REGIONNBR"),1) == "9" || Field("REGIONNBR") == "110218") Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.