lolp1 Posted May 22, 2007 Share Posted May 22, 2007 Elseif $RetryCount > or == $MaxRetrys ThenThis is a bad expression it says, whats wrong with it? Link to comment Share on other sites More sharing options...
Danny35d Posted May 22, 2007 Share Posted May 22, 2007 Elseif $RetryCount > or == $MaxRetrys Then This is a bad expression it says, whats wrong with it?Elseif $RetryCount >= $MaxRetrys Then AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
lolp1 Posted May 22, 2007 Author Share Posted May 22, 2007 Elseif $RetryCount >= $MaxRetrys ThenYour solution works, but why doesn't mine? Would like to understand why my code is working/not working. Link to comment Share on other sites More sharing options...
Danny35d Posted May 22, 2007 Share Posted May 22, 2007 Your should be like: Elseif $RetryCount > $MaxRetrys or $RetryCount == $MaxRetrys Then AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
Gif Posted May 22, 2007 Share Posted May 22, 2007 Your should be like:Elseif $RetryCount > $MaxRetrys or $RetryCount == $MaxRetrys Thenprobably the double = no reason for them ..... Link to comment Share on other sites More sharing options...
Danny35d Posted May 22, 2007 Share Posted May 22, 2007 probably the double = no reason for them .....Don't know what is trying to do, but if need to be case sensitive then you need == otherwise = will ignore upper or lower case. AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
Davo Posted May 22, 2007 Share Posted May 22, 2007 Elseif $RetryCount > or == $MaxRetrys ThenThis is an illegal expression in any language I can think of. The suntax for what you are trying to do is as described above, ">=" which stands for Greater then OR equal to. This is a general syntax problem in which the compiler does not understand what you are trying to do.For a list of operators used in autoit search the index for Operators.Dave ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------"I don't need to know everything, I just need to know where to find it when I need it"....EinsteinAnd in our case... That's the AutoIT helpfile ;) Please read before posting!!! Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 22, 2007 Share Posted May 22, 2007 Don't know what is trying to do, but if need to be case sensitive then you need == otherwise = will ignore upper or lower case.But if case is an issue, it's a string compare and '>' is invalid. So it's just wrong all around.For numeric: >=For string: ==Can't mix 'em. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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