Yes, if you assign a boolean value to it directly, then if true, the attribute is included, if not, it's not.e.g.: tag(attribute=booleanVariable) Note the lack of quotes.
Thank you very much for this.
If you use an expression without quotes in diet, it becomes an interpolation.
Would you mind explaining in more detail what this means? How could one use this, other than with booleans?