Jump to content

need help with if, or, then, else rule


rookjess

Recommended Posts

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

Archived

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

×
×
  • Create New...