matlantis_features.features.elasticity.utils.select(cond: bool, value_for_true: _T, value_for_false: _T) _T#

Select 2nd or 3rd arg’s value depending on the cond arg.

Parameters
  • cond (bool) – Conditional value.

  • value_for_true (_T) – Value if cond is True.

  • value_for_false (_T) – Value if cond is False.

Returns

Result of select operation.

Return type

_T