"[error] Error in runEval condition of if: $ is not defined" when executing "if" command


#1

Using if with $(!statusOK) or $(!LastCommandOK) both give me this error message:

[error] Error in runEval condition of if: $ is not defined

The command before it is verifyElementPresent (does the same thing with assertElementPresent). Does anybody have any ideas of what the problem is?

[info] Executing:  | assertElementPresent | //*[@id="main"]/div[3]/div[2]/div/div[2]/div/div[3]/div[1]/div[2] |  | 
[info] Executing:  | if | $(!statusOK) |  | 
[error] Error in runEval condition of if: $ is not defined

#2

You wrote $(!statusOK) but correct would be ${!statusOK} :wink:


#3

Oh thank you! :smiley: