Evaluation order of variables in scripts/automations

Hey all,

I couldn’t find this anywhere in docs - but is there any order guarantee to the evaluation of variable blocks in things like scripts and automations? eg.

variables:
  a: 1
  b: 2
  c: "{{ a + b }}"

Would the above be guaranteed to successfully evaluate c or could this fail with something like a is undefined?

Thanks!

1 Like