Loop Syntax Correction
Hello. I am having a bit of trouble with this for-loop, a syntax error and would love an extra pair of eyes on this,
I basically have a 'Hire Date' field, and I would like to generate a concatenated list of the number of full years since the 'Hire Date' and today. For example:
Please note the zero, and also note the 10 is missing since the anniversary date has not passed the 10 year mark.
I know I am close, but I am getting a syntax error if someone could please assist.
3 replies
-
Are you using the for notion correctly? It looks wrong to me. Please check.
You might want to use the for from notation instead of the for i infor ... from ... to ... do ... end
-
Martin Mueller , I was making it way more complicated than it had to be.
Here is my outcome:
While I am sure a loop could've achieved this too, this was probably the best solution, lol.
Content aside
- Status Answered
- 2 yrs agoFri, December 23, 2022 at 4:15 PM UTCLast active
- 3Replies
- 59Views
-
2
Following