Denso RC5 Specifications Page 264

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 263
11-14
EXIT FOR (Statement)
Function
Forcibly exits from FOR-NEXT.
Format
EXIT FOR
Explanation
This statement forcibly exits from FOR-NEXT and proceeds to the next
instruction after a FOR-NEXT statement.
Related Terms
FOR-NEXT
Example
DEFINT li1, li2, li3, li4, li5, li6, li7, li8, li9
DO WHILE li1 > li2 'Executes a head decision iteration.
IF li1 = 4 THEN EXIT DO 'Exits from DO-LOOP if li1 = 4.
FORli3=0TO5 'Repeats the process of FOR-NEXT 5 times.
FOR li4 = li5 TO li6 '
Repeats the process of FOR-NEXT by adding 1 to the value of li5
'
until
li5 becomes the value of li6.
FORli7=1TOli8STEP 2 '
Repeats the process of FOR~NEXT by adding 2 to the value
'from 1 until it becomes li8.
IF li2 = 2 THEN EXIT FOR 'Exits from FOR-NEXT if li2 < 0.
DO WHILE li2 < li9 'Executes a head decision iteration.
GOSUB *samp2
li9=li9+1
LOOP 'Calls a GOSUB *samp2 statement until li2 < li9.
NEXT li7 'Repeats.
NEXT 'Repeats.
NEXT 'Repeats.
li9=0
DO 'Executes a tail decision iteration.
GOSUB *samp2
li9=li9+1
LOOP UNTIL li9 < 5 'Calls a GOSUB *samp2 statement until li9 < 5.
LOOP 'Repeats.
Page view 263
1 2 ... 259 260 261 262 263 264 265 266 267 268 269 ... 691 692

Comments to this Manuals

No comments