if
ConditionThe if
condition can be applied to all change types.
The if
attribute can be added to a change with a template string as it’s value.
Only if that condition returns a true will the substitution execute.
<Change type="ChangeValue" jsonPath="$.Logging.LogLevel.Default" value="Information" if="Environment = 'PRD'" />