Skip to content

Commit a1f50a9

Browse files
authored
Update 651-language-func.markdown
1 parent 5760ecd commit a1f50a9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

_build/reference/651-language-func.markdown

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,19 @@
55
Declares a function. Return a value by assigning a 'variable' with the same name as the function.
66

77

8+
~~~
9+
'Main program
10+
print MyAddFunction(10,20)
11+
12+
13+
'Function definition
14+
FUNC MyAddFunction(a,b)
15+
16+
local c 'c is just known inside this function
17+
18+
c = a + b
19+
20+
MyAddFunction = c
21+
22+
END
23+
~~~

0 commit comments

Comments
 (0)