How To
Documentation
    Learn More

      search:conditional

      Description

      The search conditional directive

      Usage

      as element:
      <search:conditional
             [test="{string}"]
             [response="{object}"]>
      </search:conditional>

      Directive info

      • This directive creates new scope.

      Parameters

      ParamTypeDetails
      test
      (optional)
      string

      The expression to test conditional logic for. Only render the contents tag if this evaluates to true.

      response
      (optional)
      object

      A Response object to check, the tag will render the body if the Response is not null.

      Example

      Source