I'm using Pnp Modern Search to display the properties of a required SharePoint list item, so for the boolean columns I need to put a check icon if it is true or a minus icon if it is false, but the #if handlebars helper doesn't work for boolean.

My problem is I don't know where I have to declare my own handlebars helper, for example: #ifboolean...

I tried to put a test code in the styling editor(as in the picture below), above and also inside this, just to test and nothing happened. Do I need to do it in the SPFX package and then recreate a new package and reinstall this with the modifications? I'm not an expert so I need your help, please!!!

enter image description here

Thanks in advance!

1 Answer 1


I found the solution to test boolean:

{{#eq MyBOOL '0'}} <i class="ms-Icon ms-Icon--SkypeCircleMinus"aria-hidden="true"> {{/eq}} {{#eq MITMOWSBOOL '1'}} {{/eq}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.