If constructor

If(
  1. Logic condition, {
  2. List<Conditional>? then,
  3. List<Conditional>? orElse,
})

If condition is high, then then executes, otherwise orElse is executed.

Implementation

If(Logic condition, {List<Conditional>? then, List<Conditional>? orElse})
    : this.block([
        Iff(condition, then ?? []),
        if (orElse != null) Else(orElse),
      ]);