• 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>
    

    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

    Either trueValue or falseValue depending on condition