1 person found this helpful
There are several major mistakes in your code.
First of all, the "=" operator is used for assigning a value, not for comparisons.
Also, you should not use curly quotes in your code. Only straight ones (single or double, doesn't matter).
In addition, you should not put a semi-colon after an if-statement. It basically renders it useless. It should be followed either by a single line of code or by a block of code, surrounded by curly brackets, which are executed when that expression is true.
You should also be aware that any logical operator will always return a Boolean value, that is either true or false, so there's no need to add an additional check to check if it's true...
Is identical to this line:
PS. Just noticed another problem. You're only accessing the fields themselves, not their values...
Thank you for the answer.
I guess this code should be right then:
if (this.getField("Summa ATS 1").value < 64)
But it doesn't print "OK"!?
From where are you executing the code?
Are there any error messages?
Can you share the file itself, via Dropbox, Google Drive, etc.?
Sure I can.
Via Google Drive, who to invite?
Try it again using console.println() and if it still doesn't work make the file public and post the link to it here.