hey dudes
is it possible to combine both "and" + "or" scripts?
like if i have _root.something == true &&/|| _root.something == true
is that possible? that it sez if both, or if one of them is true?
then do something?
thx
Printable View
hey dudes
is it possible to combine both "and" + "or" scripts?
like if i have _root.something == true &&/|| _root.something == true
is that possible? that it sez if both, or if one of them is true?
then do something?
thx
Hi,
You would just extend your if statement...
code:
if(something){
do something;
}else if(somethingElse){
do something else;
}else{
do the regular;
}
Maybe I'm missunderstanding the question but...Quote:
Originally Posted by Zirclesoft
You do not need to combine them. That is what the or(||) operator does. It requiers that one or both of the expressions evaluate to true.
/Mirandir
waahahha ohh i get it
thanks dudes! i didnt know the || statement would say
that if one or both of them were true...thanks :)