Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 837 Bytes

islessthan.markdown

File metadata and controls

46 lines (30 loc) · 837 Bytes
layout title categories published alias tags
default
islessthan
Reference
Functions
islessthan
true
reference-functions-islessthan.html
reference
data functions
functions
islessthan

Prototype: islessthan(value1, value2)

Return type: class

Description: Returns whether value1 is less than value2.

The comparison is made numerically if possible. If the values are strings, the result is the inverse to that of comparing with strcmp().

Arguments:

  • value1 : Smaller string or value, in the range .*
  • value2 : Larger string or value, in the range .*

Example:

bundle agent test
{
classes:

  "ok" expression => islessthan("0","1");

reports:

  ok::

    "Assertion is true";

 !ok::

  "Assertion is false";

}

See also: [isgreaterthan()][isgreaterthan].