This is a split issue from this original ticket: https://toolset.com/forums/topic/conditional-display-to-eliminate-output-when-fields-are-empty-is-breaking-post/
-------------------------------------------------------------------
The last remaining thing with this I'm realizing now is again on this page:
hidden link
Where the results currently show
TEAM MAKER POINTS
Rome Coca-Cola 21 0
Volley Llamas 12 0
How do I set up a conditional on the Points field as well. That should not display if the output there is 0 points. I'm not sure how to set up the conditional on that because that isn't a single field. That is a calculated total of all the score fields from the Men's, Women's, Mixed A, and Mixed B games. The code for that calculation is as follows:
[wpv-calculate][types field="team-1-score-mens-doubles"][/types]+[types field="team-1-score-womens-doubles"][/types]+[types field="team-1-score-mixed-doubles-1"][/types]+[types field="team-1-score-mixed-doubles-2"][/types] [/wpv-calculate]
So my question is how do I put all that within a conditional? The code for one of the conditionals is as follows:
[wpv-conditional if="( $(wpcf-team-1-score-teammaker) gt 0 )"]
But that one is checking a single field.
Is there any way to have the entirety of the calculation within the conditional? The way I would guess this would be done is as follows:
[wpv-conditional if="( $([wpv-calculate][types field="team-1-score-mens-doubles"][/types]+[types field="team-1-score-womens-doubles"][/types]+[types field="team-1-score-mixed-doubles-1"][/types]+[types field="team-1-score-mixed-doubles-2"][/types] [/wpv-calculate]) gt 0 )"]
But I'd also guess that won't work. I tried this and it did work to eliminate the display of the Points column on this match, but it also eliminated it on all the other matches even when the calculation did have results over zero.
Is there a way to eliminate the Points column when the calculated amount is zero? When the matches consist of the TeamMaker game only, that is the only thing that should display. The Points column is irrelevant in those matches. But the Points column is vital to all other matches.