kidsprogramming

 

10gbCubescriptTeacher

Page history last edited by Mike Leishman 2 yrs ago

Cube Script

by Eric Barrows

bottles = 10 
gnb = "green bottles hanging on the wall" 
btf = " and if one green bottle should accidently fall" 
secret_chk = [
echo  $bottles $gnb
echo  $btf
if (= $bottles 1)[
echo "there'd be no green bottles sitting on the wall."
]
echo  there'd be (- $bottles 1) "bottles sitting on the wall" 
bottles = (- $bottles 1) 
]
level_trigger_1 = [
secret_chk 
]

Comments (0)

You don't have permission to comment on this page.