I have a variable in which I’m trying to use an IF statement due to an admin error in our infrastructure.
The IF statement is as follows;
#{if “#{Tenant.Alias}” == “django”}“djangoinvest-test-integration-app”#{else}"#{Tenant.Alias}-#{Environment.Alias}-Integration-App"#{/if}
I’m trying to get the variable Azure.WebApp to paste as ‘djangoinvest-integration-app’ when the client is ‘django’ and for it to be #{client}-#{environment}-integration-app in all other cases as the django-integration-app has already been created in error and is not useable for us.
I was able to make the if/else logic work in a test environment. However, I was unable to get this to work with nested variables. I’ve reached out internally to see if there is an alternative syntax or workaround that could apply here.
I should have a more complete answer for you shortly. Thanks for your patience.
I was able to get this working. It looks like the #{ in front of the if satisfies the syntax which eliminates the need for an additional $ or #{ } when nesting a variable. See my example below: