var plus exactly one operator.
Operators
Every operator except
set: false is false when the referenced value is
empty. Comparisons are string comparisons except the four numeric ones.
Effective values
The referenced value is the variable’s effective value: its saved (or submitted, or deploy-time) value, else its default. A select withdefault: deploy satisfies eq: deploy before anyone touches the form.
For secrets, the form cannot see the saved value, so it treats a saved secret
as set for set conditions; equality comparisons against a saved secret’s
contents are not possible from the browser and evaluate on the server with
the real value.
Chaining
The referenced variable may itself carry awhen. Evaluation follows the
chain: an inactive variable makes every condition that reads it false,
so a whole branch deactivates together. Validation rejects cycles.
ACTION = destroy, RUN_MODE is inactive, and therefore
PLAN_DETAIL is inactive too, even though nobody changed RUN_MODE.
What inactive means
Values typed into a field that later becomes inactive are kept, not
deleted; they apply again when the condition holds.
Rules
- A configuration variable cannot depend on a deploy-time variable,
because the deploy-time value does not exist while the saved form is
evaluated. Mark the dependent variable
deploy_time: trueas well. - A variable cannot depend on itself;
varmust name a declared variable. eqandinoperands against aselectmust be among its options — otherwise the condition could never hold.- Numeric operators need numeric operands on both sides at evaluation time; a non-numeric value makes the condition false.
ACTION = destroy,
REPLICAS ≥ 2, DOMAIN is set, REGION is one of eu-west-1, eu-central-1
— appear in the form hint, on the deployment page’s variable list, and in
the manifest.