You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#{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"
The text was updated successfully, but these errors were encountered:
Hey Octo Crew, would adding an
elseif
be possible?Below is an example from Variable Substitutions.
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.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"The text was updated successfully, but these errors were encountered: