User Tools

Site Tools


pt:ostype

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 ====
 +
 +<code>
 +print "You are using a ";
 +if ostype() = 0 then
 +   print "windows";
 +else
 +   print "unix/linux";
 +end if
 +print " machine."
 +</code>
 +Produzirá
 +<code>
 +You are using a unix/linux machine.
 +</code>
 +
 +==== Introduzido na versão ==== 
 +
 +0.9.6.58
pt/ostype.txt · Last modified: 2020/02/28 10:46 (external edit)