PHP笔记网

革命尚未成功,同志仍须努力下载JDK17

作者:Albert.Wen  添加时间:2023-10-03 09:27:44  修改时间:2024-11-28 16:35:52  分类:02.低代码/Mendix  编辑

https://docs.mendix.com/refguide9/string-concatenation/

经典示例:

trim(
    ( if $ContactPerson/Firstname != empty and $ContactPerson/Firstname != ''
    then $ContactPerson/Firstname + ' ' else '' ) +
    
    ( if  $ContactPerson/Middlename != empty  and $ContactPerson/Middlename != ''
    then  $ContactPerson/Middlename + ' ' else  '' ) +
    
    ( if  $ContactPerson/Lastname != empty  and $ContactPerson/Lastname != ''
    then  $ContactPerson/Lastname + ' ' else  '' ) +
    
    ( if  $ContactPerson/Suffix !=  empty  
    then  getCaption( $ContactPerson/Suffix )
    else '')
)