nilare falsey; all other values are truthy.
iftag is always paired with an
endiftag. The code between these tags only runs if the condition in the
iftag evaluates to something truthy.
unlesstag only executes the code it contains if the condition is falsey.
elsetag can be added within
caseblocks. The code that follows the
elsetag is run if the condition above it does not run.
elsiftag adds a second condition to an
unlessblock. If the condition above it does not run, the next
elsiftag will be evaluated – and if its condition is truthy, the code that follows it will run.
elsiftags may be added within
endcasetag pair contain a series of
whentags, and optionally an
elsetag. The value specified in the
casetag is inspected, and Liquid then looks for a
whentag that has a matching value. If one is found, that
whentag gets to run its code. If no match is found, the code for the
elsetag (if given) is run.