K# 检查包含字符串
K# Check Contain String
我有位置字段,想检查它是否包含特定的文本字符串。如果是,则显示该值,如果不是,则不输出任何内容。 K#是怎么写的。谢谢!
类似下面的内容:
{%If(CurrentDocument.Location contains "abc"){CurrentDocument.Location} Else {""} #%}
{% 位置 == "abc" ? "abc":“”%}
是:
{% CurrentDocument.Location.Contains("abc")?CurrentDocument.Location:"" #%}
我有位置字段,想检查它是否包含特定的文本字符串。如果是,则显示该值,如果不是,则不输出任何内容。 K#是怎么写的。谢谢!
类似下面的内容:
{%If(CurrentDocument.Location contains "abc"){CurrentDocument.Location} Else {""} #%}
{% 位置 == "abc" ? "abc":“”%}
是:
{% CurrentDocument.Location.Contains("abc")?CurrentDocument.Location:"" #%}