bf6-portal-mod-types
    Preparing search index...

    Function IfThenElse

    • Tertiary operator. If condition is true, return the first value. Otherwise return the second value. Note: Both trueValue and falseValue will be evaluated if they are derived from function calls.

      Parameters

      • condition: boolean

        The condition to evaluate.

      • trueValue: any

        The value to return if the condition is true.

      • falseValue: any

        The value to return if the condition is false.

      Returns any

      Any The value of the condition.

    • Tertiary operator. If condition is true, return the first value. Otherwise return the second value.

      Parameters

      • condition: boolean
      • trueValue: any
      • falseValue: any

      Returns any