@bridgeline-digital/hawksearch-handlebars-ui
    Preparing search index...

    Function ifElse

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

      <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