condition_from_variable_existence

Create a condition from the existence of a variable.

⚙️ Compatible targets: Linux, Windows

Parameters

NameDocumentation
conditionPrefix of the condition.

This parameter is required.
variable_nameComplete name of the variable being tested, like my_prefix.my_variable.

This parameter is required.

Outcome conditions

You need to replace ${condition} with its actual canonified value.

  • ✅ Ok: condition_from_variable_existence_${condition}_ok
    • ☑️ Already compliant: condition_from_variable_existence_${condition}_kept
    • 🟨 Repaired: condition_from_variable_existence_${condition}_repaired
  • ❌ Error: condition_from_variable_existence_${condition}_error

Example

method: condition_from_variable_existence
params:
  variable_name: VALUE
  condition: VALUE

Documentation

This method define a condition:

  • {condition}_true if the variable named from the parameter Variable name is defined
  • {condition}_false if the variable named from the parameter Variable name is not defined

Also, this method always result with a success outcome status.