KB-127288: Conditional expressions

Conditional expressions

Conditional expressions give you the possibility to assign a value to a variable only if a condition is fulfilled.

The following generally applies:

  • Variable = If<Condition>is fulfilled, than the variable is assigned the contents of<value>.
  • If the conditions are not met, the contents of the variable will remain unchanged.

Syntax

$def::var//n// = $func::getif//Condition// (`<Comparison partner>`, `<Value>`)

The following applies

  • n refers to a specific variable.
  • Condition is a wildcard for the key word that describes the condition.
  • Comparison partner is used to determine the condition
  • Value is the content, that is assigned if the condition is fulfilled.

The following conditional expressions are available in the script package:


Last update: September 15, 2023

Related Articles

IMPRINT | PRIVACY POLICY | COOKIE POLICY

Privacy Preference Center