Prototype: isgreaterthan(value1, value2)

Return type: boolean

Description: Returns whether value1 is greater than value2.

The comparison is made numerically if possible. If the values are strings, the comparison is lexical (based on C's strcmp()).

Arguments:

  • value1: string, in the range: .*
  • value2: string, in the range: .*

Example:

body common control
{
      bundlesequence => { "example" };
}

bundle agent example
{
  classes:

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

  reports:

    ok::

      "Assertion is true";

    !ok::

      "Assertion is false";

}

Output:

R: Assertion is true