I have a variable group that I want to be run an expression in. That is I want to have the variable group's variable contents be computed at runtime.
Variables_General has a variable called isMain with the content $[contains(variables['Build.SourceBranch'], 'refs/heads/develop')]
variables:
- group: Variables_General
...
condition: variables.isMain
But this isn't working as desired. I've tried various combinations of double quoting, using $[],and $(). I've tried this in both the variable value and how the variable is referenced. It does one of two things, Says it wasn't expecting "$" or simply detects that the variable has content and therefore is "true"
What is the correct way to have code in a variable group's variable's value that gets evaluated at runtime?