Or Statement Assistance

I currently have a little script that says this:
$if($in(%language%,eng),$set(TLAN,$title(English)))

Which works great if “eng” is always in lower case, but sometimes it’s cap like “Eng”.
Can you put an OR statement like you can in C#?

if “eng” or “Eng”… etc

I’m doing this with all the languages so I thought I’d ask :slight_smile:
thanks

Or simply use the $lower() function to force %language% to lower case before testing, such as:

$if($in($lower(%language%),eng),$set(TLAN,$title(English)))
3 Likes

Ahh, yes, of course! Thanks

And just for completeness, a or check would be done with $or(condition1,condition2)

1 Like

Thank you for all the information