DaRedMonkey
IS-IT--Management
Is there a way to check to see if certain value is in the array.
For example, instead of doing something like the following statement:
if ( (x=='A') || (x=='W') || (x=='p') { ... }
I would like to do something to this effect:
options = ('A','W','P');
if ( x in options ) { ... }
Is that possible? If it is, how would you write it.
Thank you very much in advance.
--DRM