Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

mustBeLessThan

Checks that value is less than another value or issue error.

Syntax

  • mustBeLessThan(var, c)
  • mustBeLessThan(var, c, argPosition)
  • C++: void mustBeLessThan(const ArrayOfVector& args, const ArrayOf &c, int argPosition)

Input argument

  • var - a variable: logical or numeric array.
  • c - a variable: scalar numeric value.
  • argPosition - a positive integer value: Position of input argument.

Description

mustBeLessThan checks that value is less than another value or issue error.

Example

mustBeLessThan(1, 0)
mustBeLessThan(1, 2)

See also

mustBeNumeric.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET