Block Condition

Affects block's visibility based on condition expression.

Configuration

Select block you want to put visibility condition on. Click on Block Condition button in editor's toolbar and configuration window will appear. Use Select parent element button to select currently selected block's parent. Specify condition expression and confirm.

Test (expression)

Define simple field name or formula using expression language to be evaluated as boolean value. If condition result is true, then block will be visible, otherwise hidden.

Examples:
Surname - single field expression will be true, if Surname is populated
quantity > 0 - expression to hide block when quantity is less or equal to 0

Type conversion table

When you define expression which is not returning boolean value type natively, other types are converted to boolean based on following criteria:

Number True if value is other than 0.
String True if value is populated.
Array True if array is not empty.