Go; Label; Op; Repeat - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

go
Executes the line within the current procedure following a Lab e L expression with
the same input word.
>go "Loop
if
Executes one of two instruction lists depending on the value of the input expression;
input instructions must be literal lists enclosed in brackets.
>if (a>b) [pr [a is
bigger]~
>[pr [b is bigger]]
label
Identifies the line to be executed after ago expression with the input word.
>LabeL "Loop
op
(output) Makes the input object the output of the procedure and exits the procedure
at that point.
?op [resuLt]
repeat
Executes the input instruction list the input number oftimes.
?repeat 4 [fd 50 rt 90]
Introduction to Logo
Chapter 6 Page 39

Advertisement

Table of Contents
loading

Table of Contents