https://netsuiteprofessionals.com logo
Title
j

jcribb

04/17/2018, 4:51 PM
Hah I saw that code posted too. I was wondering why the do while loop, why not just while?
c

creece

04/17/2018, 5:02 PM
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

jcribb

04/17/2018, 5:09 PM
Nice, I didn't think of that.
c

creece

04/17/2018, 5:10 PM
I taught college CS classes for a few years and this was always a question that popped up. Its common
👍 1