{{#checkIfAny}} helper

Block helper for creating conditions where all elements are connected using OR operator. Use it to show a block when at least one of the values is set, for example when a post has an author or tags. For AND conditions use checkIfAll.

Syntax:

{{#checkIfAny ARG_1 ARG_2 ARG_3 ... ARG_N}}
   Code displayed when above condition is true
{{else}}
   Code displayed when above condition is false
{{/checkIfAny}}

Example:

{{#checkIfAny author tags}}
   Block displayed if author or tags data are available
{{/checkIfAny}}

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide