cf_version_maximum
Table of contents
                    
                        
                    
                Prototype: cf_version_maximum(string)
Return type: boolean
Description: Returns true if local CFEngine version is the same or older than specified string.
Arguments:
string:string- CFEngine version number to compare against - in the range:.*
Example:
 code
      bundle agent __main__
{
  reports:
    "This will be skipped on newer versions"
      if => cf_version_maximum("3.15");
    "This will be skipped on older or equal versions"
      unless => cf_version_maximum("3.15");
}
Output:
 code
      R: This will be skipped on older or equal versions
See also: cf_version_minimum(), cf_version_after(), cf_version_before(), cf_version_at(), cf_version_between().
History:
- Introduced in 3.16.0