Hello!, I hope you can help me
I'am creating a report with a document template, all was working good but when I'm trying to create some resume rows I had a problem, if the field has a zero value I don't want to show this row, so I write an conditional expression before it.
<<if: ([field1]>0) >>
table with 1 row: <<[field1]>>
<<EndIf>>
This worked fine but when I try to add another "if"
<<if: ([field1]>0) >>
table with 1 row: <<[field1]>>
<<EndIf>>
<<if: ([field2]>0) >>
table with 1 row: <<[field2]>>
<<EndIf>>
the workflow sends me this error
The document is trying to find the if(conditional,true,false) syntax beacause I replaced IF: with IF and sends me the error that the syntax was incomplete.
the document only accepts one IF conditional?? I don't thing so...
thank you in advance
Solved! Go to Solution.
Hi @ingalsaac76
Templates can be tedious, but your expression looks correct.
As a start, you may want to simplify your expression this way:
<<if:[field1]>0>>table with 1 row: <<[field1]>><<EndIf>>
<<if:[field2]>0>>table with 1 row: <<[field2]>><<EndIf>>
(No parenthesis, and all in one row)
PLUS:
Can you check formatting is strictly the same on the If/End if part ? It causes issue into interpretation if not.
Here are examples of what you can do:
Here are examples of what you can't do:
(at the beginning, you can see a subtle change in formatting of each example)
Hi @ingalsaac76
Templates can be tedious, but your expression looks correct.
As a start, you may want to simplify your expression this way:
<<if:[field1]>0>>table with 1 row: <<[field1]>><<EndIf>>
<<if:[field2]>0>>table with 1 row: <<[field2]>><<EndIf>>
(No parenthesis, and all in one row)
PLUS:
Can you check formatting is strictly the same on the If/End if part ? It causes issue into interpretation if not.
Here are examples of what you can do:
Here are examples of what you can't do:
(at the beginning, you can see a subtle change in formatting of each example)
Hello! thank you for your help!, It was the parenthesis ๐... I never think that would be the problem
User | Count |
---|---|
15 | |
12 | |
9 | |
8 | |
4 |