<< mustBeNumericOrLogical | Validators | mustBeReal >> |
mustBePositive(var) |
mustBePositive(var, argPosition) |
C++: void mustBePositive(const ArrayOfVector& args, int argPosition) |
a variable: all supported types and classes that implement isnumeric, islogical, all, isreal, and gt methods.
a positive integer value: Position of input argument.
mustBePositive checks that value is positive or raise an error.
mustBePositive(1)
mustBePositive(-1)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET