Put the numbers into an array and sort it. Then you only have to check
against the next number while you iterate 'a'.
HTH,
Mark
On 12/21/06, Eduardo Barbosa <[EMAIL PROTECTED]> 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