I am using Listmonk which utilizes Go Templates. I have a situation where a variable for user status (.Subscriber.Attribs.Pro) may exist (and if it does, it is true or false. I want to display a block of text only if the value exists.
The code I have works if the Pro attribute is set. However if it is not set, it will be processed as not '' which leads to a value of true.
{{ if not .Subscriber.Attribs.Pro }}
You are not a Pro user!
{{ end }}
How do I have this code run only if the Pro attribute is explicitly set to false