Original Post
In C++, I wrote a test function like this int Test(lua_State *L) { lua_pushnumber(L,1); return 0; } However when I write the following code in Lua, done = 0; a = 0; while done == 0 do a = Test(); if a == 1 then done = 1; end io.write("Blah "); end this loop repeats forever. All I want to do is have the Test() function return 1. What am I doing wrong? Thanks in advance! -- Brandon