Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

[Solved] Shorten if greater or equal to

$
0
0
AutoIt Code         
Elseif GuiCtrlRead($input2) > 4 Then ;Check if Lines are correct; MsgBox(0, "Error", "Line must be 1 to 4 only.") Elseif GuiCtrlRead($input2) = 0 Then ;Check if Lines are correct; MsgBox(0, "Error", "Line must be 1 to 4 only.")


How do you shorten these down to one line. I tried Or and And with no luck. I would assuming this would work, but not.

AutoIt Code         
Elseif GuiCtrlRead($input2) = 0 or > 4 Then ;Check if Lines are correct; MsgBox(0, "Error", "Line must be 1 to 4 only.")

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>