Hello ,
I have a question about the if statement. This one is not working for me, even when I copy from the example in the help function.
What do I do wrong ?
//complex expression:
IF>{(%a% = 5) AND (%VarA% = "allen")}
//do something
ELSE
//do something else
ENDIF
- The editor doesn't understand the endif statement also...
- why don't I see in the example see ">" afther else en endif.
- the and and or are not working also........
strange ..
Thanks if someone can check this out.
Regards Duran
if statement
Moderators: JRL, Dorian (MJT support)
Hi,
Works fine for me. Of course you do need to initialise those variables or it will fail:
Let>a=5
Let>VarA=allen
IF>{(%a% = 5) AND (%VarA% = "allen")}
MessageModal>True
ELSE
MessageModal>False
ENDIF
Check for trailing spaces when you paste this into the editor.
Works fine for me. Of course you do need to initialise those variables or it will fail:
Let>a=5
Let>VarA=allen
IF>{(%a% = 5) AND (%VarA% = "allen")}
MessageModal>True
ELSE
MessageModal>False
ENDIF
Check for trailing spaces when you paste this into the editor.
MJT Net Support
[email protected]
[email protected]
AH! LOL! ELSE/ENDIF wasn't added until 7.3. So, yes, that's your problem. The version you have doesn't support complex expressions either. See history list here:
http://www.mjtnet.com/index.htm?page=mswhatsnew.html
http://www.mjtnet.com/index.htm?page=mswhatsnew.html
MJT Net Support
[email protected]
[email protected]