GitHub

{{#checkIfAll}} helper

Block helper for creating conditions where all elements are connected using AND operator.

Syntax:

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

Example:

{{#checkIfAll author author.avatar author.name}}
<img src="{{author.avatar}}" alt="{{author.name}}" />
{{/checkIfAll}}

Subscribe

Get the latest Publii news, updates and more delivered directly to your email inbox

You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at contact@tidycustoms.net. By clicking below, you agree that we may process your information in accordance with our Privacy Policy.