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
+1
person also asked this
people also asked this
Replies
18 replies
Subscribers
7 subscribers
Views
8988 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Is there a way to convert a String to evaluable SAIL expression ? I
Raj Yadla
over 9 years ago
Is there a way to convert a String to evaluable SAIL expression ?
I have a comparative expression saved in a database field, I need to retrieve it from the database and evaluate it within a condition in SAIL.
OriginalPostID-137948
OriginalPostID-137948
Discussion posts and replies are publicly visible
Top Replies
jackm829
over 9 years ago
+1
A Score Level 3
You could try eval(). My understanding is that this is an undocumented function. You will have to test to make sure that it works with your Appian version. Example: eval("count({1,2,3})") returns 3. In…
Raj Yadla
over 9 years ago
+1
Thanks all ,eval() did the trick for me.
Parents
0
Mike Schmitt
over 9 years ago
Per jackm's comments earlier, it looks like eval() might be something you can leverage to handle these. It is an undocumented function as of 7.8 at least, so Appian Best Practices (AFAIK) recommend it to be used very cautiously if at all. However, given that, I was able to test it as working in both of the code examples you posted earlier. What's more, you can push a value into a local variable and then evaluate text containing that local variable.
i.e.
=load(
local!value: "asdf",
eval(
"len(local!value)=4"
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Mike Schmitt
over 9 years ago
Per jackm's comments earlier, it looks like eval() might be something you can leverage to handle these. It is an undocumented function as of 7.8 at least, so Appian Best Practices (AFAIK) recommend it to be used very cautiously if at all. However, given that, I was able to test it as working in both of the code examples you posted earlier. What's more, you can push a value into a local variable and then evaluate text containing that local variable.
i.e.
=load(
local!value: "asdf",
eval(
"len(local!value)=4"
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data