Path: news1.icaen!news.uiowa.edu!chi-news.cic.net!cs.utexas.edu!www.nntp.primenet.com!nntp.primenet.com!news.bbnplanet.com!su-news-hub1.bbnplanet.com!newsxfer3.itd.umich.edu!portc01.blue.aol.com!audrey01.news.aol.com!not-for-mail From: mikew50@aol.com (MikeW50) Newsgroups: comp.sys.apple2.programmer Subject: Re: New Apple IIGS BASIC Date: 4 Feb 1997 03:41:58 GMT Organization: AOL http://www.aol.com Lines: 64 Message-ID: <19970204034100.WAA10955@ladder01.news.aol.com> References: <19970122020001.VAA09303@ladder01.news.aol.com> NNTP-Posting-Host: ladder01.news.aol.com X-Admin: news@aol.com Part 4 Control ------- DO [ UNTIL | WHILE ] expression LOOP [ UNTIL | WHILE ] expression FOR identifier '=' expression TO expression [ STEP expression ] NEXT [ identifier [ ',' [ identifier ] ]* ] IF expression [ THEN | GOTO | THEN GOTO ] line IF expression THEN statement [ ':' statement ]* IF expression THEN ELSE IF expression THEN ELSE END IF SELECT CASE expression CASE expression [ TO expression ] [ ',' expression [ TO expression ] ]* END SELECT WHILE expression WEND END GOSUB line GOTO line [ LET ] l-value = expression ON GOSUB line [ ',' line ]* ON GOTO line [ ',' line ]* ONERR GOTO line POP REM any character sequence RESUME RETURN STOP Named Subroutines ----------------- CALL identifier parameter-list DECLARE subroutine-declaration FUNCTION name parameter-list SUB name parameter-list Error Handling -------------- ERL (returns error line) ERROR expression (flags an error) ERR (returns error number) Strings ------- ASC '(' string-expression ')' CHR$ '(' expression ')' LEFT$ '(' string-expression ',' expression ')' LEN '(' string-expression ')' MID$ '(' expression ')' RIGHT$ '(' expression ')' STR$ '(' expression ')' VAL '(' string-expression ')'