dash2.md

December 15, 2020 ยท View on GitHub

- VARIABLE = VALUE

If you want to set a variable if conditions of a block match, do it like this:

Example:
@ Checking for php presence
  when which php
  or which php7.2
  or which php6.4
  - present = 1

echo $present  # => 1

See also

- COMMAND
- && (conditional loop)
and_when
or_when
@
ignore_errors