"Or" and "And" operators in Octopus variable substitution syntax

Is there some way to use logical “or” and “and” operators in variable substitution syntax like the following?
#{if Octopus.Action[Smoke Test] && Octopus.Action[Smoke Test].Output.FailedSmokeTestMessage} <h3 style="color: red">Failed Smoke Tests</h3> #{Octopus.Action[Smoke Test].Output.FailedSmokeTestMessage} #{/if}

Hi,

Thanks for getting in touch! Sorry about the delay in getting back to you. Unfortunately we do not support those operators when it comes to our variable evaluation, but there are a couple of workarounds.
The first is you can create a new variable with the value of #{if var1}true{/if}#{if var2}true{/if} which will evaluate to true or truetrue which are both truthy for OR.
The second is that AND can be resolved by nested IFs.

For full support I suggest adding a suggestion to our UserVoice site: http://octopusdeploy.uservoice.com/

Please let me know if you have any issues :slight_smile:
Vanessa