To conditionally render parts of the template, use if action:

https://codeeval.dev/gist/4b072f5b4bdd5c383147b52a9b03e62e

false values

Templating uses “truthy” logic for deciding what values are true or false in the context of if action:

https://codeeval.dev/gist/b1098cf2b4f74ab7a6c5f957ecff53c3

Avoid printing empty slices

Truthy logic is useful when we want to show different text if a list of items is empty:

https://codeeval.dev/gist/a2735e2b26a67b9ee32282fd8e323277