View Full Version : how do i express this???
kidpablo
September 12th, 2003, 09:55 AM
can anyone tell me how I can express the following in actionscript?
if this = this & this = this or this
cheers.
kode
September 12th, 2003, 10:03 AM
if (this == this && this == this || this) {
statement(s);
}
That makes no sense, though. :P
What are you trying to do? :)
SeiferTim
September 12th, 2003, 10:27 AM
Do you mean something like:
if ( a == b && c == d || e ) {
thingstodo;
}
Or something else? The other way to do it would have nested If/Then/Else statements:
if ( a == b ) {
if ( c == d ) {
action1;
} else {
if ( c == e ) {
action2;
}
}
}
it's been a while since I've done nested If/Thens like that, but it should essentially work...
Are you trying to have different actions depending on one variable though? Like if a = B, do this, if a = C, do something else, etc?
It really depends on what you're trying to come out with...
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.