55

Syntax Summary
NAME (see Chapter 15)
Use
NAME changes the name of a file. (See also REN.)
Syntax
NAME old-file-name AS new-file-name
where
old-file-name and new-file-name are file-names
NEXT (see ChapterS)
Use Terminates the sequence of statements which make up the body of a FOR loop. Syntax NEXT [loopcountert)[, if Ioopcounter2))[, if loopcounter3))...

OFF (see Chapter 3)
Use
OFF is a function which always retums 0, the value which BASIC 2 Plus deemsto
represent the Boolean value ‘false’. (See also FALSE.)
Syntax OFF

ON (see Chapter 3)
Use ON is a function which always retums —1. (See also TRUE.)
Syntax ON

ON ERROR (see Chapter 16)
Use ON ERROR specifies what action isto betaken in the event of an error. Syntax ON ERROR STOP
or ON ERROR GOTO location
ar ON ERROR EXIT place
where place is MODULE, SOB or FUNCTION, as appropriate.

ON...GOSUB (see Chapter 6)
Use
Like ON. . - GOb, this statement isa relicfrom older BASICs, included to make
BASIC 2 plus compatible.
Syntax ON condition GOSUB [locaUont) [, [location2)) [, [locafion3))
where condition is an integer-expression
locattont, locafion2, Iocatton3, .., etc are locations.
BASIC 2 PIus: User Guide & Quick Reference 55

55