/Free Control Statements, Part 2

DO Stuff: There’s an old programmers’ adage: “Where there’s an IF, there’s a DO,” and darned if it isn’t true. By David Shirey Editor’s Note: This article is excerpted from chapter 5 of 21st Century RPG: /Free, ILE, and MVC, by David Shirey. Fortunately, most of what we said for IFs is true for DO loops. The DO itself has been eliminated from /Free (use FOR). And the DOWGT, DOULT, and others of that ilk are out as well. What you are left with is simpler and more straightforward: DOW and DOU with a conditional statement. The basic syntax is:
Verified by MonsterInsights