Sign in to follow this  
Followers 0
Kovitt

For Loops and If statements

3 posts in this topic

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

Share this post


Link to post
Share on other sites



The "Then" keyword must be on the same line as the "If" keyword muttley


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

The "Then" keyword must be on the same line as the "If" keyword :)

Wow I feel like a dumbass..

Thanks muttley

Share this post


Link to post
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
Sign in to follow this  
Followers 0