我有一个要求去做下面的事情
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
发布于 2016-09-27 04:25:15
我想你的订单刚刚取消了。
试试这个:
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.addressLine1https://stackoverflow.com/questions/39575639
复制相似问题