General information
Category:
Coding, syntax & commands
Title:
Multiple tests in an if
I am trying to use an if statement to test a condition.
I only want to do the body of the if when CStr_Lata = X.
the problem is that I have about 80 values for X that should make the condition true. I tried using or's in between like:
cstr_lata = 120 or cstr_lata = 122 or....
and so on, but it gets really long and i am sure it is slow. I also thought about using the in statement:
if cstr_lata in(120,122,....)
but i am not sure if that will work.
Would an array works better?
Any ideas how i can test for one of about 80 values being true?
Thanks,
Ryan Uhl
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only