Mais conteúdo relacionado
Small Basic Language
- 1. ria ble St
va op
For i = 1 to 7
!!! S tart
EndFor
- 2. If ( something
) Then
Endif
- 3. If ( ) Then
something
ElseIf ( ) Then
something
else
Else everything else
Endif
- 4. Pare
ntheses
Call the
Subroutine doStuff()
Same Name
Define the
Subroutine Sub doStuff nth
es es
are
EndSub NoP
- 5. iew GetPenColor()
V
Getters GetPenWidth()
GetBackground()
g e
a n SetPenColor(“yellow”)
h
C Setters SetPenWidth(5)
SetBackground(“black”)
- 6. iab le value
var
Zipcode = 90210
is
‘the current zipcode is 90210
- 7. in d
ex value
iab le
var
map[1] = “one”
map[2] = “two” is
map[3] = “three”
i=1
map[1] = map[6-5] = map[i]