Boolean
Last updated
Was this helpful?
Was this helpful?
children:
- type: component.entity
options:
children:
- type: component.entity-field
options:
label: Does the array of data contain both a name and an image? (And)
value: =$boolean(@ctx.datasources.employees.name and @ctx.datasources.employees.img)
- type: component.entity-field
options:
label: Does the array of data contain a phone number or email? (Or)
value: =$boolean(@ctx.datasources.employees.phoneNumber or @ctx.datasources.employees.email)
- type: component.entity-field
options:
label: If name of employee is "Mary Gomez", set true. (If value =)
value: =@ctx.datasources.employee.name = "Mary Gomez" ? true :false
- type: component.entity-field
options:
label: If age of employee is smaller than 20 set true. (If value <)
value: =@ctx.datasources.employee.age < 20 ? true :false
- type: component.entity-field
options:
label: Does the array of data contain more than two objects? (If array >)
value: =$count(@ctx.datasources.employees) > 2 ? true :false placeholders:
- when: =$count(@ctx.datasources.employees-dynamic) > 0 ? false :true
title: There is no data
icon: missing-data