Jump to content

Recommended Posts

Posted

Msgbox(0, "title", $nag)
    Msgbox(0, "title", $up)

If $nag > $up then
    
    Do

Msgbox(0, "title", "Flag 5")
    
    $o_Form = _IEFormGetCollection($o_IE, 1)
    
    $uupgrade = _IEFormElementGetObjByName ( $o_Form, "unitupgrade")
    
    $uupgrade.click
    
    _IELoadWait ($o_IE)
    
until $up > $nag

endIf

The first mesage box comes up with 2237414 and the second with 615000.

This shows that $nag is clearly higher than $up, however the message box with flag 5 never comes up, and none of the other code gets executed. I have no idea why this if statement seems to not be working.

I also tried this with a while/wend loop and it never got executed either.

  • Moderators
Posted

Is $nag and $up actually a string?

Try this:

If Number($nag) > Number($up) Then

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...