This shows you the differences between two versions of the page.
es:ostype [2016/01/01 22:43] |
es:ostype [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Ostype ===== | ||
+ | |||
+ | ==== Formato ==== | ||
+ | |||
+ | **ostype** ( )\\ | ||
+ | |||
+ | ==== Descripción ==== | ||
+ | |||
+ | Devuelve un número que representa el sistema operativo/ | ||
+ | |||
+ | ^Valores devueltos^^ | ||
+ | ^Valor^Tipo^ | ||
+ | |0|Windows| | ||
+ | |1|Linux| | ||
+ | |2|Macintosh| | ||
+ | |||
+ | ==== Ejemplo ==== | ||
+ | |||
+ | < | ||
+ | print " | ||
+ | if ostype() = 0 then | ||
+ | print " | ||
+ | else | ||
+ | print " | ||
+ | end if | ||
+ | </ | ||
+ | mostrará algo como esto: | ||
+ | < | ||
+ | Estás usando un equipo con unix/linux. | ||
+ | </ | ||
+ | |||
+ | ==== Disponible desde la versión ==== | ||
+ | |||
+ | 0.9.6.58 | ||