Jump to content

IF with multiple conditions?


Recommended Posts

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

Link to comment
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 *

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...