Prototype: and(...)

Return type: boolean

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

Arguments: A list of classes, class expressions, or functions that return classes.

Example:

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

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

See also: or(), not()

History:

  • Introduced in 3.2.0, Nova 2.1.0 (2011)
  • Return type changed from string to boolean in 3.17.0 (2020) (CFE-3470)