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
3 replies
Subscribers
7 subscribers
Views
1625 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hello, I was wondering if there is a function that will take a number
issamd
over 8 years ago
Hello,
I was wondering if there is a function that will take a number, lets say four, and return an array of numbers that lead up to said number.
So if I input 4, I want to get an array of {1,2,3}. Does anybody have a suggestion?
OriginalPostID-209777
OriginalPostID-209777
Discussion posts and replies are publicly visible
Parents
0
nickq
over 8 years ago
You are looking for enumerate:
forum.appian.com/.../Mathematical_Functions.html
Also, it starts at 0, so just add 1 for it to start at 1: enumerate()+1
For your specific use case: enumerate(ri!num-1)+1
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
nickq
over 8 years ago
You are looking for enumerate:
forum.appian.com/.../Mathematical_Functions.html
Also, it starts at 0, so just add 1 for it to start at 1: enumerate()+1
For your specific use case: enumerate(ri!num-1)+1
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data