Page 1 of 1
Multiple If
Posted: 19 Oct 2017, 07:59
by HIAC
How can I use multiple If?
I've tried the following code and it doesn't work
Code: Select all
A = 5
B = 66
if A between 5 and 8 && if B between 50 and 100
MsgBox Ok.
Re: Multiple If Topic is solved
Posted: 19 Oct 2017, 08:05
by Spawnova
Code: Select all
a := 5
b := 66
if ((a >= 5 and a <= 8) and (b >= 50 and b <= 100)) {
msgbox a is between 5 and 8`nb is bewteen 50 and 100
}
Re: Multiple If
Posted: 19 Oct 2017, 08:10
by HIAC
Thank you mate.
Re: Multiple If
Posted: 19 Oct 2017, 08:16
by TheDewd
Using the format you originally tried:
Code: Select all
#SingleInstance, Force
A := 5
B := 66
If A between 5 and 8
{
If B between 50 and 100
{
MsgBox, OK
}
}