Printing Tags & Constraints


Ive noticed in some HTML templates on the forum there are constraints within. Could someone point out the formatting of it? It looks super useful


Nevermind! Found it here!

Constraints and conditional statements using ternary operator work on all templates, not just HTML.

1 Like

I know, I just didnt understand the syntax :pray:

[=(is this statement true ? then do this : otherwise do this)]

[=(2 > 1 ? 'GREATER' : 'LESS')] returns ‘GREATER’ because 2 > 1 is true

[=(2 < 1 ? 'GREATER' : 'LESS')] returns ‘LESS’ because 2 < 1 is false