tt_EVEN function

dynamic tt_EVEN(
  1. dynamic value
)

tt_EVEN(n): the smallest even number ≥ n

Implementation

dynamic tt_EVEN(dynamic value) {
  final n = varToInt(value);
  return n.isOdd ? n + 1 : n;
}