I have an octopus variable
say “testvariable” with value ‘true’ , under my project
now I have a step where I gave run on condition
#{if testvariable== “true”}
But this always returns false and step get skipped.
How to properly use the variable expression in run condition
Hi @praveendvd0pravu ,
Thanks for getting in touch! It looks like you’re very close, and the only change needed is to update the syntax of your if
statement in your run condition. Replacing it with the following should get it working as you’re expecting.
#{if testvariable== "true"}true#{/if}
There’s some additional info with more examples showing this syntax in the following documentation page.
Let me know how you go, or if you have any further questions going forward!
Best regards,
Kenny
1 Like