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
2 replies
Subscribers
8 subscribers
Views
1218 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I have 2 arrays of numbers. I need to create a rule that returns true
joep45
over 10 years ago
I have 2 arrays of numbers.
I need to create a rule that returns true if Any of the 2nd array is greater than the same index of the first array
so 1;3;1 and 3;3;1 is true, 1;4;1, 1;3;1 is false
I can't come up with how to do this, any() won't let me pass in both arrays for a comparison rule, how can i accomplish this rule?
...
OriginalPostID-130255
OriginalPostID-130255
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 10 years ago
any() is the way to go. Write an own function, let's name it "ownGreaterThan()" with two numbers as input. The function itself is only "=ri!number2 > ri!number1". Then you can use that with any like this: ="any(rule!ownGreaterThan, merge(array1, array2))". Use this as a starting point for your own experiments ...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
joep45
over 10 years ago
Thanks merge() is what i was missing.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel