To check text, you can use the verifyText command
if the checked text is not the right one I would like to skip to another step…
For this part, use the built-in if/endif or gotoif commands.
If !(!statusOK)
...do something here if the text is not ok
endif
!statusOK is an internal variable that is FALSE if an error occurred (such as the verifyText failing). The first !
in front inverts the result (so if !statusOK is FALSE, then the if clause is TRUE).