I was wondering if there is a way to use the conditional statement, from the extended substitution syntax, within the value of a variable?
One of the sites we develop is editable or read only at certain times of the year and is controlled by changing settings in Web.configs and JSON files. At the moment these changes are applied manually and I would like move control of this to octopus. Initially my thinking is to control this using one variable as a Boolean and then use the conditional statements in the substitution syntax to change the value of the variables along the lines of this:
Thanks for getting in touch! you can do this. I believe the best way would be to use the if & unless statements, I do not believe value & !value works with our substitution syntax. Though we do allow = & !=, I don’t think we need that here. I tested the following on my server and it worked great.