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
11 replies
Subscribers
8 subscribers
Views
4700 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hi, Im trying to fetch different constant values based on different c
divyav
over 9 years ago
Hi,
Im trying to fetch different constant values based on different conditions for choice labels and choice values of "Dropdown field", Each constant has 2 values, but it is returning only single value when I use "Like" conditions. If I use "=", all values of constants are returning. Please see the code below
ChoiceLabels:
if(
like(ri!cdtxyz.tfield,"*New*"),
cons!NEW_LABELS,
if(
like(ri!cdtxyz.tfield,"*Renewal*"),
cons!RENEWAL_LABELS,
if(
like(ri!cdtxyz.tfield,"*Modification*"),
cons!MODIFY_LABELS,
cons!TERMINATE_LABELS_))),
Similarly for Choice values also.
Please suggest any solution to return all values of constants, when like condition is matching
OriginalPostID-208632
OriginalPostID-208632
Discussion posts and replies are publicly visible
0
sikhivahans
over 9 years ago
Just to add some more information to this, a discussion based on the lines of making use of a boolean array has been discussed some months ago at
forum.appian.com/.../e-146293
.
It's okay to use a boolean array inside if(), but we should also be aware of the consequences of the same and code accordingly. Also this behavior has been explained at
forum.appian.com/.../Logical_Functions.html
. Just in case, if a single boolean value is expected, we should type cast or convert(as said by @stefanh by applying or() over the result) the final result to an expected data type, so that we wouldn't see any unexpected results.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<