Title here
Summary here
Lua has various value types including strings, numbers, booleans, etc. Here are a few basic examples.
To run the program, save it as values.lua
and use the lua
command:
In this example, we see:
..
operator.and
, or
, and not
.Note that Lua uses ..
for string concatenation instead of +
, and keywords like and
, or
, and not
for boolean operations instead of symbols.
Also, Lua doesn’t have a separate print function for each value; instead, multiple arguments to print
are separated by tabs in the output.