Creating a token with a null value | Community
Skip to main content
KCS_Integration
Level 2
March 30, 2018

Creating a token with a null value

  • March 30, 2018
  • 0 replies
  • 1478 views

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 



This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.