on 01-21-2016 3:40 PM
Hi all,
IF (session.info.transaktion == "VA03") {
session.utils.log("reached VA03");
} ELSE {
session.utils.log("could not reach VA03");
EXIT;
}
If I validet the scripting above I got the mesage:
unexpected token {
What is wroung ?
and EXIT?? 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Steve Rumsby,
many thanks for your helpfull answer.
It is a old habit, to write this in capitals.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
IF and ELSE should be lowercase in javascript
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Javascript is case sensitive - the keywords (IF, ELSE, etc.) must be in lower case.
Also, you can't use "exit" to exit a script. You can, in the browser at least, use "return" (the script engine in Windows GUI objects to "return" in this context), but it would be better to structure your script to avoid this completely.
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.