Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 808 Bytes

isgreaterthan.markdown

File metadata and controls

44 lines (29 loc) · 808 Bytes
layout title categories published alias tags
default
isgreaterthan
Reference
Functions
isgreaterthan
true
reference-functions-isgreaterthan.html
reference
data functions
functions
isgreaterthan

Prototype: isgreaterthan(value1, value2)

Return type: class

Description: Returns whether value1 is greater than value2.

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

Arguments:

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

Example:

bundle agent example
{
classes:

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

reports:

  ok::

    "Assertion is true";

 !ok::

  "Assertion is false";

}