Text validation in SUT

I have the following code,

Put “created by”&&variable&&“on”&&date in textValidateVariable

If imageFound(text: textValidateVariable)
Some statements
End If

But when this executes the variable value is not searched in the SUT and instead it searches for “textValidateVariable” string.

How to solve this? Is there any other way to do this?

To store a value into the textValidateVariable you need to use “into” instead of “in” in your Put command:
Put “created by”&&variable&&“on”&&date into textValidateVariable