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 ""; Quote 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") Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.