Hi. This script im doing reads 4 cards, the same number card, but different suit. When i use complex if expressions, it wont do anything. When i use regular if expressions, it works...EX:
COMPLEX
label>read
GRC>333,444,555,111,card1
if>{(%card1%=3455345) OR (%card1%=845645) or (%card1%=543553) OR (%card1=235645)} then
let>card1=7
goto>7
endif
goto>read
////////////////////
label>7
message> the card is a seven
THIS COMPLEX STATEMENT WILL NOT WORK! But the following code will.
Lets say it was a 2 of hearts...
label>read
grc>x1,y1,x2,y2,card1
if>card1=435345,2
goto>read
//////////////////
label>2
messagemodal>the card is a 2!!!!!!
THAT WILL WORK!! Is my complex if statement incorrect? Help!
Kind Regards,
Mark
complex if> not working
Moderators: JRL, Dorian (MJT support)
Remove then from the end of the If line:
if>{(%card1%=3455345) OR (%card1%=845645) or (%card1%=543553) OR (%card1=235645)}
if>{(%card1%=3455345) OR (%card1%=845645) or (%card1%=543553) OR (%card1=235645)}
MJT Net Support
[email protected]
[email protected]
-
- Pro Scripter
- Posts: 63
- Joined: Sat Dec 25, 2004 3:23 pm
-
- Pro Scripter
- Posts: 63
- Joined: Sat Dec 25, 2004 3:23 pm