什么?符号是指第一个if语句之后?

发布于 2025-02-07 12:19:55 字数 388 浏览 2 评论 0原文

新来!我正在研究贾斯珀斯特(Jaspersoft),我以前从未使用过它,但是我看到了一些指南。 我知道条件具有这种结构:<条件> ?(然后)true:(else)false。 但是我有问题要理解这条代码(请参阅此消息的末尾),其中IF有点复杂。有人可以向我解释这条代码行为吗?

($V{REPORT_COUNT}.intValue() == (1+("".equals($P{parametriReport}.get("censimp"))?0:1)) ? ("".equals($P{parametriReport}.get("censimp"))?"":"Codice Censimp "+$P{parametriReport}.get("censimp")):"")

new Here! I'm working on Jaspersoft, I've never used it before, but I saw some guide about.
I know that the IF condition has this structure : <condition> ?(Then) True :(else) False.
But I have problem to understand this line of code (see at the end of this message), where the IF is a little bit complicated. Can someone explain me what this line of code does?

($V{REPORT_COUNT}.intValue() == (1+("".equals($P{parametriReport}.get("censimp"))?0:1)) ? ("".equals($P{parametriReport}.get("censimp"))?"":"Codice Censimp "+$P{parametriReport}.get("censimp")):"")

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文