Movatterモバイル変換


[0]ホーム

URL:


CFEngine documentation homepage

not

Suggest changes
Table of contents

Prototype:not(expression)

Return type:boolean

Description: Returnsany if all arguments evaluate to false and!any ifany argument evaluates to true.

Arguments:

  • expression:string - Class value - in the range:.*

Argument Descriptions:

  • expression - Class, class expression, or function that returns a class

Example:

code
commands:"/usr/bin/generate_config$(config)"if=>not(fileexists("/etc/config/$(config)"));

Notes: Introduced primarily for use withif andunless promise attributes.

See also:and(),or()

History:

  • Introduced in 3.2.0, Nova 2.1.0 (2011)
  • Return type changed fromstring toboolean in 3.17.0 (2020) (CFE-3470)

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