if常规用法:if是否满足条件,then满足就返回什么值,else不满足就返回什么值
if [名称] = "喜羊羊" then "喜羊羊和灰太狼" else null null空(可以是其他值) =等于,<>为不等于
if嵌套用法:if是否满足条件,then满足就返回怎么样,elseif不满足就判断另外一个条件,then就返回怎么样,else不满足就怎么样
if [名称] = "喜羊羊" then "喜羊羊和灰太狼" else if [名称] = "沸羊羊" then "喜羊羊和灰太狼" else if [名称] = "暖羊羊" then "喜羊羊和灰太狼" else null)
if Text.EndsWith 判断结尾是否包含条件,then如果包含就返回什么值,else不满足就返回什么值 Ends最后部分 With有
if Not Text.EndsWith 判断结尾不包含条件
if Text.EndsWith([名称], "羊羊") then "喜羊羊和灰太狼" else null null空(可以是其他值)
嵌套用法:if Text.EndsWith([名称], "羊羊") then "喜羊羊和灰太狼" else if Text.EndsWith([名称], "娃") then "葫芦娃" else null) null空(可以是其他值)
if Text.StartsWith判断开头是否包含条件,then如果包含就返回什么值,else不满足就返回什么值 Starts开始 null空(可以是其他值)
if Not Text.StartsWith判断开头不包含条件
if Text.StartsWith([名称], "熊") then "熊大熊二" else null) Starts开始 null空(可以是其他值)
if Text.Contains判断中间是否包含条件,then包含返回什么值,else不满足返回什么值
if Not Text.Contains判断中间不包含条件,then包含返回什么值,else不满足返回什么值
联系客服