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