This function is used to render different content inline depending on whether a condition resolves to true or false.
true
false
<hawksearch-icon name="{{if-else toggled 'chevron-down' 'chevron-right'}}"></hawksearch-icon>
Either trueValue or falseValue depending on condition
trueValue
falseValue
condition
Condition to be evaluated
The value to be returned if condition resolves to true
The value to be returned if condition resolves to false
This function is used to render different content inline depending on whether a condition resolves to
true
orfalse
.Example
Returns
Either
trueValue
orfalseValue
depending oncondition