Logo GenPRES

Choice Module

Returns the value a choice selects from the current range of an order variable. Returns a failure when the choice is not allowed or finds no value.

Functions and values

Function or value Description

select ovarRef choice ovar

Full Usage: select ovarRef choice ovar

Parameters:
Returns: Result<ValueUnit, ActionFailure>

Returns the value that the choice selects from the current range of the variable. Returns NotSettable when the shape does not allow the choice, and ValueNotInRange when no value is found.

ovarRef : OrderVariableReference
choice : Choice
ovar : OrderVariable
Returns: Result<ValueUnit, ActionFailure>

Type something to start searching.