aisingapore / TagUI

Free RPA tool by AI Singapore
Apache License 2.0
5.67k stars 584 forks source link

Not equal operator - you can use not equal to / not equals to #766

Closed gesnype closed 4 years ago

gesnype commented 4 years ago

Hi, I'm trying to write an if statement in my for loop. The if statement should check if the n iteration is the last one. The code should be "if n not equal to array.length"

Is there such an operator?

kensoh commented 4 years ago

Here's the code for TagUI v6 syntax, to check if it is the last iteration - CC @siowyisheng

for n from 1 to array.length
    echo `n`
    if n equals to array.length
        echo LAST ITERATION