[ create a new paste ] login | about

Link: http://codepad.org/ODarWfIW    [ raw code | output | fork ]

nepta - Lua, pasted on Apr 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local a = 0
function someThing()
	print "do some thing"
	a = a+1
end

local c = true
function someOtherThing()
	print "do some other thing"
	c = a < 3
end

repeat
	someThing()
	someOtherThing()
	print(c)
until c ~= true


Output:
1
2
3
4
5
6
7
8
9
do some thing
do some other thing
true
do some thing
do some other thing
true
do some thing
do some other thing
false


Create a new paste based on this one


Comments: