DMX (with or without curly braces)

Hello dear wappler users !

I’m a bit lost when it comes to dmx expressions.

I see some expressions without curly braces :
dmx-text=“localization.value.offer_affiliates_enabled”

And some with them :
dmx-text="{{localization.value.offer_affiliates_enabled}}"

Both resulting in the same output.

But in some instances, I need to remove them to have the expression rendred correctly.

This would not work :
dmx-text=“affiliation_toggle.checked.then({{localization.value.offer_affiliates_enabled}}, {{localization.value.offer_affiliates_disabled}})”

But this works :
dmx-text=“affiliation_toggle.checked.then(localization.value.offer_affiliates_enabled, localization.value.offer_affiliates_disabled)”

What’s the general rule of thumb when it comes to using them ?

Thenk you very much for your help ! :slight_smile:

Community Page
Last updated: