Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
2330 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I wanted to point out either an issue with the Appian documentation or the like(
dylanf
over 10 years ago
I wanted to point out either an issue with the Appian documentation or the like() function itself. Per the documentation:
Examples
Copy and paste an example into the Test Rules interface to see how this works.
like("brian","\\*ian") returns true
However, this does not return true.
like("brian","*ian") (without the "\\" in the multicharacter wildcard)
does return true. Please advise....
OriginalPostID-79158
OriginalPostID-79158
Discussion posts and replies are publicly visible
0
dylanf
over 10 years ago
btw, we're on Appian 7.2
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mark Talbot
Appian Employee
over 10 years ago
Hi Dylan, that’s correct. You need the escape with the astrix (\\*) to match one or more characters. Try like(“*ian”, *ian”). That will return true since stringA matches the pattern defined in stringB. However, like("brian", "*ian") returns false since stringA "brian" does not contain an asterisk.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
dylanf
over 10 years ago
Mark, that is not the behavior I'm seeing. like("brian", "\\*ian") returns false, but like("brian", "*ian") returns true.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mark Talbot
Appian Employee
over 10 years ago
Hi Dylan, I've confirmed that behavior on 7.2. Thanks for pointing this out and I'll follow with support on this.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
meghan.mahar
Appian Employee
over 10 years ago
I've updated the documentation based on your findings. Thank you, Dylan!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel