param.reactive.reactive_ops.where#

reactive_ops.where(x, y)[source]#

Returns either x or y depending on the current state of the expression, i.e. replaces a ternary if statement.

Parameters:
  • x (object) – The value to return if the expression evaluates to True.

  • y (object) – The value to return if the expression evaluates to False.