This is a general programming question.
I am using an editor called wxluaeditor, writing code, and trying to run it...but nothing works.
How does one script something then test it? What program would you use to do that in Lua?
The code is very simple (from a website somewhere)
function mySqr(x) -- Define a Function
return x*x; -- ';' is optional
print("Enter a number :")
n = io.read("*number")
but after it prints Enter a Number, it doesnt go any further. I tried saving it and opening it from the desktop (with lua's console), but it crashes after I put a number in.
PLEASE, SOMEONE, ANYONE, HELP!