How do I get a value in Lua without using io.read()?

Asked

Viewed 225 times

1

Let’s say I have something like

a = io.read()
a = tonumber(a)
if a then
    print(a,a^2-1)
end

There’s another way to get in this driveway other than the io.read()?

  • 4

    Because you need another way?

  • I was just curious if there was any other way than io.read()

  • 2

    Picks value from where? File, user typing, or what?

  • preferred user typing, but can be from tbm file

1 answer

1


  • thanks for the help :D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.