list = [12, 34, 21, 46, 52 ...]
a = ??
var doIt:Boolean = true;
for ( var c:Number = 0; c < list.length; c++ ) { if ( list[c] == a ) {
doIt = false; }
if (doIt) { //do something }
thats how i'd do it!
ben
Eduardo Barbosa wrote:
Hi all,
given a list of numbers such as: (12, 34, 21, 46, 52 ... )
what would be the best way to achieve this:
a++;
if ( a != 12 && a != 34 && a != 21 && a != 46 && a != 52 ... ) {
// do something
}
Am doing my research and trying out some solutions but i thought that
in the
meantime someone may have a quick ready answer for this or some good
hints.
thanks a lot!
Eduardo
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com