Jump to content
Sign in to follow this  

Help with greater then and less then

Recommended Posts


How would I check to see if a color value is between two preset color values? I can't get the <&> function to work. Here is an example script. I want to return a color value if the color is between two set color values and a message if it is outside those values.

#include <Color.au3>


$iRedColor = _ColorGetRed($color)

If $iRedColor>220 And <230 Then ;this part of the script doesn't work

MsgBox( 4096, "AutoIt", $iRedColor )


MsgBox(4096,"AutoIt","not red")


Hellp Please!!!

Share this post

Link to post
Share on other sites

If $iRedColor > 220 And $iRedColor < 230 Then



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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.