• This function is used to render different content inline depending on whether a condition resolves to true or false.

    Example

    <hawksearch-icon name="{{if-else toggled 'chevron-down' 'chevron-right'}}"></hawksearch-icon>
    

    Returns

    Either trueValue or falseValue depending on condition

    Parameters

    • condition: any

      Condition to be evaluated

    • trueValue: any

      The value to be returned if condition resolves to true

    • falseValue: any

      The value to be returned if condition resolves to false

    Returns any