Jump to content

For Loops and If statements


Recommended Posts

Hello,

I keep getting an error:

C:\Documents and Settings\******\My Documents\scripts\Job_Watch\Job_Watch.au3 (82) : ==> "If" statements must have a "Then" keyword.:
if $ceid[$x] >= $RangeS[$i] and $ceid[$x] <= $RangeE[$i]

for the following code:

For $x=0 to Ubound($ce_id) - 1
        For $i=0 to Ubound($Jobs) - 1
            if $ceid[$x] >= $RangeS[$i] and $ceid[$x] <= $RangeE[$i]    
                Then 
                    $Job_Instance[$i] = $Job_Instance[$i] + $CEID_Instance[$i]
                        Exitloop
            EndIf
        Next
    Next

Did I use and incorrectly?

Thanks for the help! muttley

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...