<< mustBeGreaterThanOrEqual | Validators | mustBeInteger >> |
mustBeInRange(value, lower, upper) |
mustBeInRange(value, lower, upper, argPosition) |
mustBeInRange(value, lower, upper, boundflag1) |
mustBeInRange(value, lower, upper, boundflag1, argPosition) |
mustBeInRange(value, lower, upper, boundflag1, boundflag2) |
mustBeInRange(value, lower, upper, boundflag1, boundflag2, argPosition) |
C++: void mustBeInRange(const ArrayOfVector& args, const ArrayOf& lower, const ArrayOf& upper, const std::wstring& boundflag1, const std::wstring& boundflag2, int argPosition) |
a numeric value: scalar or matrix
a scalar numeric or logical value.
a scalar numeric or logical value.
'inclusive', 'exclusice', 'exclude-lower' or 'exclude-upper'.
'inclusive', 'exclusice', 'exclude-lower' or 'exclude-upper'.
a positive integer value: Position of input argument.
mustBeInRange checks that value is in the specified range or raise an error.
The only valid combination of the flags is exclude-lower with exclude-upper.
mustBeInRange(3, 2, 4)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET