Conditionals

Conditionals provide each

  • a way to check a variable if it equals a given value
  • two slots of which only one is displayed, depending on the equality above

They differ on which kind of variable they check for a value.

IfDataAnnotation

Checks whether a Data element (a sheet row) has a certain annotation (set from e.g. Buttons or code; annotations are run-time and don’t persist over reloads).

Developer docs

Props

Prop Type Default Description
value*
key*

Slots

Name Default Props Fallback
else No
iftrue No

IfUIKey

Checks a UIKey or globalStore (which can be set from Buttons or actions.js code).

Developer docs

Props

Prop Type Default Description
value*
key*
storeType string "uiKey"

Slots

Name Default Props Fallback
else No
iftrue No

IfUserVar

Checks a UserVar (which can be set e.g. from Story/chat code or other code).

Developer docs

Props

Prop Type Default Description
value*
variable*

Slots

Name Default Props Fallback
else No
iftrue No

IfNext

Checks if there is a next element in the elements context (after the one in the current element context)

Developer docs

Slots

Name Default Props Fallback
else No
iftrue No

IfPrevious

Checks if there is a previous element in the elements context (before the one in the current element context)

Developer docs

Slots

Name Default Props Fallback
else No
iftrue No