Movatterモバイル変換


[0]ホーム

URL:


CFEngine documentation homepage

cf_version_minimum

Suggest changes
Table of contents

Prototype:cf_version_minimum(string)

Return type:boolean

Description: Returnstrue if local CFEngine version is newer than or equal to specifiedstring.

Arguments:

  • string:string - CFEngine version number to compare against - in the range:.*

Example:

code
bundleagent__main__{reports:"This will be skipped on older versions"if=>cf_version_minimum("3.15");"This will be skipped on newer or equal versions"unless=>cf_version_minimum("3.15");}

Output:

code
R: This will be skipped on older versions

See also:version_compare(),cf_version_maximum(),cf_version_after(),cf_version_before(),cf_version_at(),cf_version_between().

History:

  • Introduced in 3.16.0

Still need help?

Chat Ask a question on Github Mailing list
Version 
master3.24 (LTS)3.21 (LTS)view all versions

[8]ページ先頭

©2009-2025 Movatter.jp