:Define funcname(vars)=function

This defines a simple one-line function. It stores the function in the function variable named funcname.

:Define funcname(vars)=Func or Prgm:commands:EndFunc or EndPrgm

This defines a multi-line function or program. All the commands will be stored in a program or function named funcname.




:Define addone(x,y)=Func
:Return y
:Disp addone(2,3)
:Disp addone(1,8)
:Disp addone(x,y)
:DelVar addone

This will define a function variable. It then uses that function to display three numbers (6, 10 and x+y+1, respectively)

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.