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
4031 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hi, I have two arrays say array1 and array2. I want to add the e
skumar
over 10 years ago
Hi,
I have two arrays say array1 and array2.
I want to add the elements of these two arrays to get the resulting array.
for example
array1 is {1,2,3} and array2 is {1,2,3} and the resultant array should be {2,4,6}
How this can be achieved. Any suggestion will be appreciated.
Many Thanks in advance,
Sandeep...
OriginalPostID-94672
OriginalPostID-94672
Discussion posts and replies are publicly visible
Top Replies
rishirajk
over 10 years ago
+1
A Score Level 1
If the arrays are of same length then you can go with following expression ={1,2,3}+{1,2,3}. Otherwise you'll have to pad one array with 0s so that both arrays are of same length and then you can use the…
Parents
0
rishirajk
A Score Level 1
over 10 years ago
If the arrays are of same length then you can go with following expression
={1,2,3}+{1,2,3}. Otherwise you'll have to pad one array with 0s so that both arrays are of same length and then you can use the same expression.
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
rishirajk
A Score Level 1
over 10 years ago
If the arrays are of same length then you can go with following expression
={1,2,3}+{1,2,3}. Otherwise you'll have to pad one array with 0s so that both arrays are of same length and then you can use the same expression.
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data