User Tools

Site Tools


ugbasic:user:kw:for_..._next
Translations of this page:


ugBASIC User Manual

FOR ... NEXT

SYNTAX

  • FOR [identifier] = [expression] TO [expression] { STEP [expression] }
  • FOR [identifier] = [expression] TO [expression] { STEP [expression] }

PURPOSE

Implement an conditional loop.

Implement an conditional loop.

EXAMPLE

  FOR levels = 1 to 10 STEP 2
  FOR levels = 1 to 10 STEP 2

AVAILABLE ON

  • Commodore 64
  • ZX Spectrum 48K

SEE ALSO