Hi Peter,
There is a small part that is missing in your code, plus some organization that will be needed. Your code should look something more like this:
{{#pf:if answers.B1.[0] "!is" "-"}}
<tr>
<td class = "auto-style11">
<pre>{{answers.B1.[0]}}</pre>
</td>
</tr>
{{/pf:if}}
In the following document, it explains the supported operators. In your case, you used the "is" operator, but you needed the "!is" or "not is", operator.
https://docs.prontoforms.com/1374411/Content/Published/360000634103.html
As I am sure you are aware, we also have a Professional Services team that is well versed in custom document creation. You can engage with us to quickly rectify these issues along with you. We can help answer questions, provide example code for you to use, or fully build documents to ensure you maintain timelines.
I hope this helps!
Ryan
------------------------------
Ryan Maxwell
Lead, Rapid Deployment
ProntoForms
------------------------------
Original Message:
Sent: 09-18-2023 08:37
From: Peter Dienaar
Subject: Handlebars - showing a table or paragraph under conditions
Hello,
Does someone have more experience with making tables or paragraphs visible or hidden (on a pdf output document) when using Handlebars?
I did found following in the documentation :

But when using this is my output document I does not works.
In following example I only want to show the table when question B1 is NOT equal to "-".

Some suggestions?
Thank you,
Peter
------------------------------
Peter Dienaar
PF developer
Johnson Controls
------------------------------