local string s = "Blah" return s
print(shell.run("returnblah"))
Posted 02 August 2012 - 06:44 PM
local string s = "Blah" return s
print(shell.run("returnblah"))
Posted 02 August 2012 - 06:50 PM
Posted 05 August 2012 - 07:38 PM
Posted 06 August 2012 - 10:01 AM
Posted 06 August 2012 - 04:04 PM
Posted 07 August 2012 - 04:10 PM
function pro() if powerLevel > 9000 then return true -- True would be the metaphorical "string" in this example. Cannot do any other way (except for nil + false) end end if pro then print("Pro") end
Posted 07 August 2012 - 05:23 PM
local ProgramPath = <PathHere> local tEnv = {} local Success = pcall(os.run, tEnv, ProgramPath) if Success then -- Get the result local Result = tEnv.result end
return "stuff"
result = "stuff"
Posted 08 August 2012 - 04:25 AM
Run("program2") opedfile io.open(fileforreading, readmode) stringvar = opedfile.readline() io.close(file)
Posted 08 August 2012 - 07:06 AM
Posted 08 August 2012 - 07:16 AM
Posted 08 August 2012 - 07:28 AM
if rs.getInput("back")==true then return "success" end
print(loadfile("path/myprogram")())
Posted 08 August 2012 - 10:12 AM
0 members, 1 guests, 0 anonymous users