Sign in to follow this  
Followers 0
ACalcutt

IF with multiple conditions?

4 posts in this topic

#1 ·  Posted (edited)

is there any way to look for multiple conditions in a IF statement

like

ex.

IF $test1 = 1 & $test2 = 1 Then

     msgbox(0, "", "both")

ENDIF

i know i could do

IF $test1 = 1 Then

     IF $test2 = 1 Then

          msgbox(0, "", "both")

     ENDIF

ENDIF

but i was wondering if there was an easier way...like my example (that example didn't work :whistle: ) Edited by ACalcutt

Andrew Calcutt

Http://www.Vistumbler.net

Http://www.TechIdiots.net

Its not an error, its a undocumented feature

Share this post


Link to post
Share on other sites



IF $test1 = 1 & $test2 = 1 Then

Just replace "&" with "AND".

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

When all else fails read the manual i guess....i was thinking along the right line....i just never noticed "AND" was an operator.....actually noticed before i saw the post...thanks


Andrew Calcutt

Http://www.Vistumbler.net

Http://www.TechIdiots.net

Its not an error, its a undocumented feature

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0