mustBeNonpositive

Checks that value is non positive or raise an error.

Syntax

  • mustBeNonpositive(var)

  • mustBeNonpositive(var, argPosition)

  • C++: void mustBeNonpositive(const ArrayOfVector& args, int argPosition)

Input argument

  • var - a variable: all supported types and classes that implement isnumeric, islogical, all, isreal, and le methods.

  • argPosition - a positive integer value: Position of input argument.

Description

mustBeNonpositive checks that value is non positive or raise an error.

Example

mustBeNonpositive(-1)
mustBeNonpositive(1)

See also

mustBeNonnegative.

History

Version
Description

1.0.0

initial version

Author

Allan CORNET

Last updated