We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

if with multiple or conditions

magdy-wafik
Tera Contributor

i need to check if variable is in or between multiple integers , is there another way or script writing with builtin In() ir Between() other than adding multiple if ors

example requested :-

       If (variable IN(value1, value2 ,value3) )

1 REPLY 1

Musab Rasheed
Kilo Patron

Hello,

Your question is confusing but if you want to check multiple condition for one variable you can use 'Switch' activity in workflow but if it is for front end validation then you can use UI policy if field is string one.

Please hit like and mark my response as correct if that helps
Regards,
Musab