If constructor
- Logic condition, {
- List<
Conditional> ? then, - 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),
]);