Beginning Lua question

dmurley

New member
Joined
Dec 11, 2017
Messages
37
Reaction score
0
Points
0
Location
Hill country (near San Antonio
I found in an example that term.out() is how output is generated to the Lua console. This function is not mentioned anywhere in the documentation for Lua that I have been looking at. Does anyone know where this function is documented? I would like to learn if I can output multiple variables in a formatted string. Thanks.

David
 

martins

Orbiter Founder
Orbiter Founder
Joined
Mar 31, 2008
Messages
2,352
Reaction score
8
Points
0
Website
orbit.medphys.ucl.ac.uk
Yes, you are right - there doesn't seem to be documentation for this function.
In short, the argument can either be a Lua string (so can be constructed with any Lua string operations for concatenation etc.), or, for convenience, one of a few recognised data types

- vector
- matrix
- boolean
- nil
- table
- user data (i.e. something constructed in C++ and treated by Lua as a black box)
 
Top