VBScript syntax for testing multiple values for a single variable without using multiple "OR" operators
Posted on 2006-04-12
What is the syntax for the determining whether a variable matches a value in a set.
For example, if I want to determine whether or not a variable is equal to one of many values
if (SECTIONABV = "ACC") or (SECTIONABV = "AIM") or (SECTIONABV = "YYY") or .... then
I would prefer to compare against a set of values, something like this
if SECTIONABV in ("ACC","AIM","YYY") then