Hello, I was wondering if there is a function that will take a number

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