如何使用空检查编写 dsl 条件
我们有包含以下条目的 .dsl 文件
[condition][]residence duration >\= {value}=FamilyMember(basicInfo.permanentResidenceDuration >= {value})
现在,此 basicInfo.permanentResidenceDuration 一开始就为空。谁能帮我写出满足以下条件的状态。如果 basicInfo.permanentResidenceDuration == null 则分配 0,否则为 basicInfo.permanentResidenceDuration 的值
we have .dsl file with below entry
[condition][]residence duration >\= {value}=FamilyMember(basicInfo.permanentResidenceDuration >= {value})
Now this basicInfo.permanentResidenceDuration is coming out to be null in beginning. Can anyboy help me out how to write the state which satisfy the following condition. If basicInfo.permanentResidenceDuration == null assign 0 else the value of basicInfo.permanentResidenceDuration
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定我明白你需要什么,但为什么不简单地做这样的事情呢?
Not sure I understand what you need, but why not simply do something like this?