Function: curValue
Returns the current value from a named Sequence. This is generally the same as the last value returned by nextValue.
Syntax
curValue(sequence)
Argument | Type | Description |
---|---|---|
sequence | String | The name of the sequence. This must be a literal string matching the name of an existing sequence - an expression resulting in a string will not be accepted. |
Examples
curValue('order_id')
curValue() returns the current value in the sequence
[curValue('order_id'), curValue('order_id')]
curValue() returns [1,1]