Metreeca Wire
    Preparing search index...
    • Generates a SPARQL if() conditional expression.

      Evaluates to then when condition holds and to otherwise when it fails. SPARQL keeps the unselected branch lazy (§17.4.1.2), so a branch that would raise an evaluation error is left unevaluated unless selected.

      Note

      Named iif because if is a reserved word.

      Parameters

      • condition: string

        The boolean test expression

      • then: string

        The expression selected when condition evaluates to true

      • otherwise: string

        The expression selected when condition evaluates to false

      Returns string

      The if(…) conditional expression