Hi,
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
Thanks!
[EDIT]
Nevermind! Found it here!
Hi,
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
Thanks!
[EDIT]
Nevermind! Found it here!
Constraints and conditional statements using ternary operator work on all templates, not just HTML.
I know, I just didnt understand the syntax
[=(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