How to calculate if screen width is equal to or greater than some number?

I cannot figure out how to use equal to or greater than logic in formula editor. I want to simply make an element visible if screen width is equal to or greater than a certain number. Can anyone help??

You can use the > < >= <= operators for this in a formula together with system variables.

Bind the component‚Äôs ‚ÄúVisible‚ÄĚ field to for example:

systemVars.dimensions.screen.width >= 400

I cannot get this to work.

IS_EQUAL(systemVars.dimensions.screen.width, < 400) is incorrect, you can do it with just

IF(systemVars.dimensions.screen.width < 400, 280, 300)

1 Like