If statement for verifyText

I want to get status report for verifyText and use it in an if statement and proceed my code according to this. Is it possible to so?

Example:

verifyText | id=first-name | test
if | ${!statusOK} == true
echo | OK
else
echo | NO
endif

Hi, I don’t understand what You’re trying to achive but your code is mostly ok - in “if” statement what you mean by “!statusOK”??
Hmmm… You want to check output of “verifyText” command? If true - You don;t have to use if statement because if the text did not match it will throw error and test will stop.
If You want to some additional action according to text in “firt-name” field you can do this like that:

storeText | id=first-name | test
if | ${test} == “expectedText”
echo | OK
else
echo | NO
endif