ostype ( )
Devolve um número associado ao sistema operativo.
| Valores devolvidos | |
|---|---|
| Valor | Tipo | 
| 0 | Windows | 
| 1 | Linux | 
| 2 | Macintosh | 
print "You are using a "; if ostype() = 0 then print "windows"; else print "unix/linux"; end if print " machine."
Produzirá
You are using a unix/linux machine.
0.9.6.58