Hah I saw that code posted too. I was wondering wh...
# suitescript
j
Hah I saw that code posted too. I was wondering why the do while loop, why not just while?
c
from a programming standpoint, do while is what you'd want to use here. Do while will always run at least 1 time and a while loop works off of some condition that may or may not be true. So doing a do/while will always run the search one time and is "more" correct.
j
Nice, I didn't think of that.
c
I taught college CS classes for a few years and this was always a question that popped up. Its common
👍 1