Technically youâre not storing a boolean variable, youâre simply storing the string âTRUEâ which youâre then comparing to the word true. The reason why it isnât working is because youâre storing âTRUEâ and comparing it to âtrueâ which is false because of the capitalization. Make sure youâre always using the same capitalization throughout your variables and stored values.
Iâm not a complete expert on this, but the only times Iâve used boolean checks in UI.Vision is with the use of one of the verify commands followed by if_v2 | ${!lastCommandOK} == true.
Do notice Iâm using three equal signs, or strict equality comparison. UI Vision converts if_v2 content to JS under the hood to evaluate the expression, so using abstract equality comparison (==) is pointless if youâre trying to true booleans (you might as well use the string âtrueâ if you keep using ==).
Depending on what you need, there might be no need for a âtrueâ boolean and the string will suffice, itâs up to you though.