-
Notifications
You must be signed in to change notification settings - Fork 0
Functions
Christopher Aliprantis edited this page Apr 7, 2026
·
7 revisions
print(func());
Assign Var To
var = func();
Declare
#func func();
Return
return(:Hello, World:);
returns can be empty End
#endfunc;
Example
#func str5();
return(:5:);
#endfunc;
print(str5());
output:
5
NOTE: you should usually have 4 spaces at the beggining of a function's line for clear code, but you can't see it on here because of the markdown renderer
Example With Parameters
#func prwnl(in);
print(in);
print();
return();
#endfunc;
prwnl(:this has a newline:);
output:
this has a newline
NOTE: you should usually have 4 spaces at the beggining of a function's line for clear code, but you can't see it on here because of the markdown renderer