什么?符号是指第一个if语句之后?
新来!我正在研究贾斯珀斯特(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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论