首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >mule数据编织条件检查循环

mule数据编织条件检查循环
EN

Stack Overflow用户
提问于 2016-09-19 22:28:14
回答 1查看 117关注 0票数 0

我有一个要求去做下面的事情

1)如果addressline4存在,则提取addressline4并与Addressline1连接2)如果addressline4不存在而addressline3存在,则提取addressline3并与Addressline1连接3)如果addressline4不存在,则提取addressline2并与Addressline1连接,如果addressline3不存在而addressline2存在4)仅提取Addressline1,其余均为空

我已经尝试了下面的一些东西,但似乎不工作,高度感谢任何帮助这一点。另外,我需要将street的字符数限制为40:

street: flowVars.addressLine1 ++‘’++ flowVars.addressLine4 when flowVars.addressLine4 !='‘otherwise flowVars.addressLine1 ++’‘++ flowVars.addressLine3 when flowVars.addressLine3 !='’otherwise flowVars.addressLine1 ++‘’++ flowVars.addressLine2 when flowVars.addressLine2 !='‘otherwise flowVars.addressLine1

EN

回答 1

Stack Overflow用户

发布于 2016-09-27 04:25:15

我想你的订单刚刚取消了。

试试这个:

代码语言:javascript
复制
t: flowVars.addressLine1 ++ ' ' ++ flowVars.addressLine2 when flowVars.addressLine2 !='' otherwise flowVars.addressLine1 ++ ' ' ++ flowVars.addressLine3 when flowVars.addressLine3 !='' otherwise flowVars.addressLine1 ++ ' ' ++ flowVars.addressLine4 when flowVars.addressLine4 !='' otherwise flowVars.addressLine1
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39575639

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档