1.

Solve : How can i use AND or OR in IF condition??

Answer»

hi ...

I tried Giving two CONDITIONS which are connected by OR operation in IF CONDITION .It didnt allow me to give

or
|
||

what way i should give.,.??

to opearte like if ((a==b) or (c==d)

advance thanks
prasanna
You have to kludge it

CODE: [Select]If "%a%"=="%b%" goto label1
If "%c%"=="%d%" goto label1
goto LABEL2

:label1
REM you arrive here if (a==b or c==d) is TRUE

REM code
REM code
REM code

goto NEXT

:label2
REM you arrive here if (a==b or c==d) is FALSE

REM code
REM code
REM code

:next



Discussion

No Comment Found