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
1 reply
Subscribers
8 subscribers
Views
1531 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Deprecated makerange() without a 2nd parameter means what?
danm826
over 8 years ago
We're converting some old process models that had makerange() in them, replacing that function with enumerate(). The resulting changes work fine except in some cases where we had assumed that:
makerange(someVariable) *** Note no 2nd parameter
...would convert to...
enumerate(someVariable)
i.e. that no 2nd makerange() parameter means that we start at zero. The problems we're running into imply that no 2nd makerange() parameter actually means that we start at one.
We're unable to find any online documentation on makerange() because Appian seems to have removed it, so we have no reference that we can find.
Can someone please tell us what starting index is assumed with makerange() and no 2nd parameter?
OriginalPostID-266074
Discussion posts and replies are publicly visible
Parents
0
danm826
over 8 years ago
Answered our own question, for anyone who may need this info:
makerange(someVariable) starts at one, so when you change to enumerate, you need to add +1 to the end for any makerange() references without a 2nd parameter:
makerange(someVariable)
...translates to...
enumerate(someVariable) + 1
If anyone knows differently, please speak up.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
danm826
over 8 years ago
Answered our own question, for anyone who may need this info:
makerange(someVariable) starts at one, so when you change to enumerate, you need to add +1 to the end for any makerange() references without a 2nd parameter:
makerange(someVariable)
...translates to...
enumerate(someVariable) + 1
If anyone knows differently, please speak up.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data