Handlebar syntax to return a boolean for a NetSuite checkbox

What is the correct syntax to use in handlebars to return a boolean value, which can then be interpreted by NetSuite to tick a checkbox?
For example, in a flow which creates a NetSuite Sales Order, should the following work to tick a checkbox?


{{#if $.payment_method}} {{#compare $.payment_method "==" "Credit Card"}} "true" {{else}} {{/compare}} {{/if}}

... as it does not appear to be evaluated as `true` by NetSuite when the condition is met.

I have also tried `true` without quotes. Also just the letter `T`, both with and without quotes - all without success

Hi @davidgospel,

  1. When a value is being hard-coded as part of a handlebars expression, it should be without double quotes.
  2. There should be no extra spaces in between "}}" and "{{".
  3. Both "true" and "T" can be used for a NetSuite checkbox field.
  4. There shouldn't be a need for an "if" expression here, just the "compare" should be enough.

Here is an example:

{{#compare $.payment_method "==" "Credit Card"}}T{{else}}{{/compare}}