The following code should only set ‘show_title’ to true if it doesn’t already exist (i.e. == blank):
assign show_title = show_title | default: section.settings.show_collection_title | default: true
However if ‘show_title’ already exists and is set to false, it will still use the default. It appears default is using falsy to determine if something exists not blank. The above code is already a cumbersome enough way of enforcing default pararmeters in snippets I really should not have to manually write out ‘if’ block boilerplate to write out basic snippet functions.
Has anyone run into this before? Is there a better way of achieving this desired functionality?