Hi all. I have seen and used this syntax for if/else logic based on the truthy/falsey-ness of parameter values: <<#parameters.public_read>>–acl public-read<</parameters.public_read>>
I can’t find this documented anywhere. I found out about it by inspecting an orb’s code. Is there anything else like this we can do that we should know about? Also, with this “IF” block, is there a syntax for the “ELSE” part? Thanks!
We use mustache for the templating, and the conditional logic comes from that.
There is a way to check IF and IF NOT. I believe these could be combined to create an IF ELSE.
Here is the basic syntax:
IF
The following will be replaced with –acl public-read if parameters.public_read is true or not an empty string: