This shows you the differences between two versions of the page.
el:ostype [2016/01/01 22:39] |
el:ostype [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Ostype ===== | ||
+ | |||
+ | ==== Format ==== | ||
+ | |||
+ | **ostype** \\ | ||
+ | **ostype** ( )\\ | ||
+ | |||
+ | ==== Description ==== | ||
+ | |||
+ | Returns a number representing the operating system/ | ||
+ | |||
+ | ^Return Values^^ | ||
+ | ^Value^Type^ | ||
+ | |0|Windows| | ||
+ | |1|Linux| | ||
+ | |2|Macintosh| | ||
+ | |||
+ | ==== Example ==== | ||
+ | |||
+ | < | ||
+ | print "You are using a "; | ||
+ | if ostype() = 0 then | ||
+ | print " | ||
+ | else | ||
+ | print " | ||
+ | end if | ||
+ | print " machine." | ||
+ | </ | ||
+ | Will display something like | ||
+ | < | ||
+ | You are using a unix/linux machine. | ||
+ | </ | ||
+ | |||
+ | ==== New To Version ==== | ||
+ | |||
+ | 0.9.6.58 | ||