Bug passing the loop condition

while | count<max

Im expecting to have 3 loops only
then it went error on a command within my loop which is:


[error] ReferenceError: compare4 is not defined

I think it should not pass to count=4 since I already ended loop less than 4

and I haven’t change any code related to this loop since then. It just happen today. Please investigate the probable cause.

KR 3.5.3

More power Katalon team! Thanks!

Thank you for the question. The expression in the “if” command is meant to be a valid JavaScript one. Please try

if | ‘compare${count}’==‘xxxx${count}’