This shows you the differences between two versions of the page.
pt:ostype [2016/01/01 22:48] |
pt:ostype [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Ostype ===== | ||
+ | ==== Formato ==== | ||
+ | |||
+ | **ostype** ( )\\ | ||
+ | |||
+ | ==== Descrição ==== | ||
+ | |||
+ | Devolve um número associado ao sistema operativo. | ||
+ | |||
+ | ^Valores devolvidos^^ | ||
+ | ^Valor^Tipo^ | ||
+ | |0|Windows| | ||
+ | |1|Linux| | ||
+ | |2|Macintosh| | ||
+ | |||
+ | ==== Exemplo ==== | ||
+ | |||
+ | < | ||
+ | print "You are using a "; | ||
+ | if ostype() = 0 then | ||
+ | print " | ||
+ | else | ||
+ | print " | ||
+ | end if | ||
+ | print " machine." | ||
+ | </ | ||
+ | Produzirá | ||
+ | < | ||
+ | You are using a unix/linux machine. | ||
+ | </ | ||
+ | |||
+ | ==== Introduzido na versão ==== | ||
+ | |||
+ | 0.9.6.58 |