How to add OR to IF function

I’m not sure if this is possible but I want to add 2 (or more) conditions to an IF function. For example:

IF(systemVars.dimensions.screen.width == 896 OR 812, systemVars.dimensions.screen.width - 60, “100%”)

Not sure how to include both of those numbers in the condition.

The IF function uses the javascript conventions. OR is represented by ||. Also, AND is represented by &&

IF(systemVars.dimensions.screen.width == 896 || systemVars.dimensions.screen.width == 812, systemVars.dimensions.screen.width - 60, “100%”)

Let me know if that didn’t work for you.

2 Likes

Great thank you it works!