I found the issue! The problem was that I had another module used in the template which was not enabled for programmable emails and the button to enable programmable emails was missing because the module had template type "All".
I had to deselect one of the options for the template types to see the enable switch:
Then select again the option if the component is to be used in all template types.
All the modules in the same template need to have programmable emails enabled to be able to use the if statements correctly otherwise just the labels are available but not comparable. It was the same with the single line text property.
I found the issue! The problem was that I had another module used in the template which was not enabled for programmable emails and the button to enable programmable emails was missing because the module had template type "All".
I had to deselect one of the options for the template types to see the enable switch:
Then select again the option if the component is to be used in all template types.
All the modules in the same template need to have programmable emails enabled to be able to use the if statements correctly otherwise just the labels are available but not comparable. It was the same with the single line text property.
This seems like a major bug. Could you give feedback through the button?
For now, you could create a hacky workaround by creating a second property named 'test_krum_text' of the type single line text. If you create a contact workflow with the trigger on the test_krum property, you could use that workflow to set test_krum_text and use test_krum_text in your modules if statement.
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.
If you retrieve a contact property using HubL, it will return the label instead of the value. This is because of the fact that HubSpot assumes that you want to use it in an email or some sort. So your if statements should check on the label and not the value.
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.