Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OR conditional operator

Status
Not open for further replies.

hawk1996

Technical User
Mar 1, 2004
15
US
Can you use an OR || operator in aspect scripts, I found in the help file that it list || as Logical-inclusive-OR but not sure how to use it in an if statement. I tried several and it would not compile. I was hoping it would work something like this:

if strfind variable1 == "var1" || strfind variable2 == "var2"

But this would not compile.

Thanks
 
I haven't used this operator in the past that I can recall, but what I was able to get work was something like this:

if (integer0 || integer1)
commands...
else
other command
endif

I'm assuming this will only work with integer variables, but haven't played around with it further yet.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top