Repeat Through a Rulebook

version 4 by Ron Newcomb

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Repeat Through a Single Rule

    [ catches the case where a user has a rule-that-varies which usually has a rulebook in it, but accidentally puts a rule in it. The repeat loop will just loop once for that rule. ]
    To repeat with (loopvar - nonexisting rule variable) running through/thru the/a/an/-- modified/-- (ar - a rule) begin -- end:
    (- {loopvar} = {ar};
        if (IsRuleInRulebook({loopvar}, {ar})) -).

    To repeat with (loopvar - nonexisting rule variable) running through/thru the/a/an/-- unmodified (ar - a rule) begin -- end:
    (- {loopvar} = {ar};
        if (true) -).