Issue

Sometimes there can be a circumstance where a text token should hold null value. Since the token must contain a value, you need to insert a value that will display as empty when the token is rendered.

 

 


Solution

Adding a HTML comment to the on the Text {{my.token}} side would work.

 

<!-- --> 


If you're just plopping the token into your HTML, this will be fine. If you're embedding it in Javascript then you can still check for that specific value, it just won't be "magic":

 

if ( "{{my.token}}" != "<!-- -->" ) { 

  // it's not empty 

 

 


 


Labels (1)