This shows you the differences between two versions of the page.
en:ostype [2016/08/14 15:52] admin |
en:ostype [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Ostype (Function) ===== | ||
- | |||
- | ==== Format ==== | ||
- | |||
- | **ostype** \\ | ||
- | **ostype** ( )\\ | ||
- | |||
- | returns [[integerexpressions|integer_expression]] | ||
- | |||
- | ==== Description ==== | ||
- | |||
- | Returns a number representing the operating system/ | ||
- | |||
- | {{page> | ||
- | |||
- | ==== 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 non-windows machine. | ||
- | </ | ||
- | |||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |0.9.6.58|New To Version| | ||
- | |1.0.1.0|Added Android| | ||
- | |1.99.99.58|Added Named Constants| | ||