Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 555 Bytes

isgreaterthan.markdown

File metadata and controls

22 lines (14 loc) · 555 Bytes
layout title published
default
isgreaterthan
true

[%CFEngine_function_prototype(value1, value2)%]

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()).

[%CFEngine_function_attributes(value1, value2)%]

Example:

[%CFEngine_include_snippet(isgreaterthan.cf, #+begin_src cfengine3, .*end_src)%]

Output:

[%CFEngine_include_snippet(isgreaterthan.cf, #+begin_src\s+example_output\s*, .*end_src)%]