not

Table of Contents

Prototype: not(expression)

Return type: boolean

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

Arguments:

  • expression: string, in the range: .*

Argument Descriptions:

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

Example:

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

Notes: Introduced primarily for use with ifvarclass, if, and unless promise attributes.

See also: and, or, not

History: Was introduced in 3.2.0, Nova 2.1.0 (2011)