Hi,
I've got this working beautifully it gathers all the types and outputs them into a table view in an email. The issue I have is it's putting the table in even if the smart variable count is 0. I would like the table not to appear if the count is 0.
The below is the code. I think it's just where the IF statements sit. I want it to basically be if the count is 0 display 'There are no bugs' then skip this whole table. If there are then display the table and all values that fall into this.
Thanks
Hi @Andy Kettle
I think your closing {{/}} just above </table> should move up all the way to the first line (as that's closing the fist if statement.
then you need the opposite if statement to handle your table (in its totality, so you'll end up with an {{/}} under the </table> tag.
Kind regards,
Dick
Hi @Dick
Thank you for your fast reply. It appears it was two issues. One was indeed the closing being in the wrong place but the second was the count was 0 so that's why it was showing. I've now changed it to a not equals and it's working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Andy Kettle
Well done to you!
Know that you still can have the "there are no bugs" feedback to the user by adding the original if statement:
{{#if(equals(varRenewalsCount, "0"))}}There are no bugs{{/}}
Kind regards,
Dick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.