Creating a token with a null value

A document by KCS Integration on behalf of Horatius Joachim on Mar 30, 2018Last modified by Roxann McGlumphy on Mar 30, 2018
Version 2Show Document
  • View in full screen mode

Issue Description
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.


Issue Resolution
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 in JS then you can still check for that specific value, it just won't be "magic":


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

  // it's not empty