Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 500 Bytes

and_when.md

File metadata and controls

32 lines (23 loc) · 500 Bytes

and when COMMAND

Represents a condition AND. Should be used right after @ block.

Example
@ Installing nginx
  when not which nginx
  - yum_install nginx

('when' is an alias for 'and when')

With multiple conditions:

@ Probably on linux system
  when test -d /sys
  and test -d /dev
  and test -d /proc
  - do foo
  - do bar

You can write 'and when test...' or just 'and test...'

See also

and when
or when
@