Single Condition

Single Conditions are either provided by the host application. See the complete documentation of Conditions for more information.

To invert a condition, add the attribute invert="true" to the condition element. This is useful where you want to show the section if a certain condition is not satisfied.

Example

1
2
3
4
5
{
  "condition": "user_is_logged_in",
  "invert": false
}

Properties

condition
Type
Max length
100
Required
Yes
Description

A string indicating the name of the condition


invert
Type
Defaults to
false
Description

A flag indicating whether to invert the boolean result of the condition.


params
Type
Description

This object represents a map of key/value pairs, where each property name and value corresponds to the parameter name and value respectively.

Example

1
2
3
4
5
6
7
{
  "params": {
    "someOtherProperty": "someValue",
    "myCustomProperty": "myValue"
  }
}