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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...