tidbit wrote:
you know that you are aloud to try code BEFORE asking if it will work

.
Code:
a=6
b=4
if (a > 2 and b < 5) ; you may use &, &&, and, |, || , or
{
msgbox
run, notepad
}
and no, no case-break in AHK.
I DID try that. I also looked at some existing scripts but couldn't find anything. Why is my script not working?
I had tried if (a > 3 and b = blue)
so I used a string rather than a number. Is that not allowed? I tried putting it in parenthesis but that doesn't seem to work either.
Thank you for your patience, I promise I am trying but I'm doing everything wrong I possibly could...
Code:
if (Color = "Blue" or Color = "White")
{
MsgBox The color is one of the allowed values.
ExitApp
}
This exact thing is in the documentation so what am I doing wrong?
this is what I'm playing around with:
Code:
MButton UP::
colour = "red"
players = 2
if (colour = "red")
msgbox, Red
Else
msgbox, Not red
Return