select(Number x, Boolean indicator)

A function to select a value if the indicator is true, or return 0 otherwise.

Parameters

  • Number x - the value.
  • Boolean indicator - indicator for whether the number should be selected, or replace with zero

Return type

Number