Bug passing the loop condition

store|4|max
while | count<max


Im expecting to have 3 loops only
then it went error on a command within my loop which is:
if|compare${count}==xxxx${count}

log:

[error] ReferenceError: compare4 is not defined

I think it should not pass to count=4 since I already ended loop less than 4
not
<=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}’