|
|
|
toand ends with the word
end. Right after to you must say the name of the action (without " in front) and the parameters of the actions.
to greater :x :y if :x>:y [print "yes] [print "no] end |
greater 5 6then it will print no.
to :x greater :y if :x>:y [print "yes] [print "no] end 5 greater 6 |
to :x greater :y if :x>:y [output "yes] [output "no] end print 5 greater 6 ; no if (5 greater 1)="yes [print "really?] ; yes |
|
|
|