Hey Octo Crew, would adding an elseif be possible?
Below is an example from Variable Substitutions.
#{if Octopus.Environment.Name == "Development"}
Do this if it's Development
#{else}
#{if Octopus.Environment.Name == "Test"}
Do this if it's Test
#{else}
Do this if it's neither
#{/if}
#{/if}
If I understand it right, every extra if has to be nested and would quickly get out of control. It would be nice to express complex checks as.
#{if Octopus.Environment.Name == "Development"}
Do this if it's Development
#{elseif Octopus.Environment.Name == "Test"}
Do this if it's Test
#{else}
Do this if it's neither
#{/if}
Probably not wise to add too many conditions but what's missing from the examples when it comes to run conditions is one level of #{if Octopus.Deployment.Error == "True"}False{/if} because you can't use "Variable Conditions" without disabling "Success: only run when previous steps succeed"
Hey Octo Crew, would adding an
elseifbe possible?Below is an example from Variable Substitutions.
If I understand it right, every extra
ifhas to be nested and would quickly get out of control. It would be nice to express complex checks as.Probably not wise to add too many conditions but what's missing from the examples when it comes to run conditions is one level of
#{if Octopus.Deployment.Error == "True"}False{/if}because you can't use "Variable Conditions" without disabling "Success: only run when previous steps succeed"