Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果细节带 1 和 2 的总和大于某个值,我想隐藏细节带 3。能做出来吗?
您可以使用不打印详细信息 3 值中的值的常规 if 语句。例如:
(($V{var1} +$V{var2}) > 15) ? $F{field1} : null
然后你检查如果为空则不打印。