Page created: 20 Jan 2022
|
Page updated: 14 Feb 2023
You can use the ternary operator to perform single line if-then-else logic expressions.
user.enabled ? 'Active' : 'Inactive'
You can use the ternary operator to perform single line if-then-else logic expressions.
user.enabled ? 'Active' : 'Inactive'