Thanks for getting in touch! I’m sorry for the delay in getting back to you! It turns out, just yesterday, we created a GitHub issue to look into adding this functionality to Octopus.
Below is the GitHub issue for reference.
So while there is no direct way to do this in Octopus currently, we are looking into adding this functionality.
Let me know if you have any questions or run into any issues.
I’m sorry for the delay in getting back to you. I have run this past the developer who made the changes here. Have you attempted to do this since you posted this? By the looks of it, this should work perfectly fine as it is. If you have tried this and run into any issues, you are more than welcome to let me know what went wrong, and we can try and resolve them.
Thanks for getting back! That’s strange, it looks to be working fine on our end. Can you confirm that you have updated to at least Octopus version 3.13.0? As this is the version we released this functionality.
I can confirm the version in use is v3.13.0, the template works fine however when I take out the nested if statements so not sure if they cause the issue or not
Thanks for getting back. One of the developers pointed out that your if statement is not using valid syntax. Sorry for any confusion, I didn’t notice initially.
In your nested if, you are using #if() Octopus is only able to parse curly brackets for our variables and the if must be nested in the brackets like your initial statement. #{if }
So the working statement should look something like this: