Logic module¶
Given a condition, yields one value or another based on if the condition evaluates to true or false.
Syntax:¶
nest.logic.conditional(x, val_true, val_false)
- nest.logic.hl_api_logic.conditional(condition, param_if_true, param_if_false)¶
Yields one value or another, based on the condition.
- Parameters:
condition (Parameter) – A comparing Parameter, created with the usual comparators.
param_if_true ([Parameter | float]) – Value or Parameter used to get a value used if the condition evaluates to true.
param_if_false ([Parameter | float]) – Value or Parameter used to get a value used if the condition evaluates to false.
- Returns:
Object representing the conditional.
- Return type: