You can do something like this I think.
--init variable
test=0
nextbet=0.0000001 -- set the base bet
-- this my function
function rnd1(param) -- this should be enough to declare the function
if param==1 then
bethigh=true
else
bethigh=false
end
end
function dobet()
if !win then
test=test+1
print("test = " .. test) -- use .. to concatenate
rnd1(1) -- just type the function name like so
else
for i=1,5 do
print(test)
end
end
end
On a side note, @Seuntjie , I think the runsim() function is broken at the moment. I attempted to use it to test some code and it would crash the program regardless of the code in the box. You don't need to login to a site to use the runsim() function, correct?