ServiceNow "Greater than or is"、"Less than or is" 和 "Between" 字符串比较运算符

ServiceNow "Greater than or is", "Less than or is", and "Between" String compare operators

在条件类型的字段中,或者像列表的过滤器中,如果我 select 一个字段是字符串类型的字段,则可用运算符列表中有三个比较运算符说到字符串的功能我就不明白了。我希望有人能帮助我理解这三个比较运算符:

  1. 小于或等于
  2. 大于或等于
  3. 之间
  4. 另外,"Matches Pattern"指的是什么?我至少在其他上下文中理解其他三个,但是 "Matches Pattern" 指的是什么,关于我熟悉的正则表达式?

这是一个屏幕截图,这样您就可以准确地看到我在说什么,只是为了确保我清楚我在问什么。提前谢谢你。

String operator screenshot

字符串运算符

对于小于和大于的字符串,考虑字母顺序。字母“A”比“B”大,依此类推。如果您提供更多的字母,您将更多地限制结果。

有记录:

Albania
Andorra
Armenia
Austria
Azerbaijan
Belarus
Belgium
Bosnia & Herzegovina
Bulgaria

当您提交 greater than or is "Belg" 时,您将收到以下结果:

Belgium
Bosnia & Herzegovina
Bulgaria

当你归档时,greater than or is "Belg" AND less than or is "Bo"。你会看到:

Belgium
Bosnia & Herzegovina

您将使用 between 运算符得到相同的结果。


匹配模式

匹配模式在文档中有很好的描述。详情请看这里doc link

简而言之,“模式”就像正则表达式,但只有星号 (*) 和问号 (?)。星号表示任何字符的任何数字(包括零),其中问号正好表示一个。

  • the story matches the story but not that story.
  • *story matches the story and that story, but not that story is the best.
  • st?ry matches story and stxry, but not my story or stairy.
  • *b?gus* matches bogus, my bogus story, and His bagus machine, but not my bgus story or my baigus story.