Kovitt Posted July 10, 2008 Share Posted July 10, 2008 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 More sharing options...
monoceres Posted July 10, 2008 Share Posted July 10, 2008 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! Link to comment Share on other sites More sharing options...
Kovitt Posted July 10, 2008 Author Share Posted July 10, 2008 The "Then" keyword must be on the same line as the "If" keyword Wow I feel like a dumbass.. Thanks muttley Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now