Multiple conditions in an if/then
Posted: Wed Sep 28, 2022 11:58 pm
Is there anyway to create an 'or' type statement in an if/then?
I currently have a lot of if/then that check a random number against a variable called will then checks if rand>will, but I'd also like to have the same statements work if rand==10.
Is there a way to do:
IF rand>will OR rand==10
THEN Condition A
ELSE Condition B
Currently the only way I could figure out was...
IF rand==10
THEN Condition A
ELSE IF rand>will
THEN Condition A
ELSE Condition B
But that's messy and it requires extensively rewriting every will check. It would be much easier if I could just rewrite the actual IF line. Any suggestions?
I currently have a lot of if/then that check a random number against a variable called will then checks if rand>will, but I'd also like to have the same statements work if rand==10.
Is there a way to do:
IF rand>will OR rand==10
THEN Condition A
ELSE Condition B
Currently the only way I could figure out was...
IF rand==10
THEN Condition A
ELSE IF rand>will
THEN Condition A
ELSE Condition B
But that's messy and it requires extensively rewriting every will check. It would be much easier if I could just rewrite the actual IF line. Any suggestions?