User Tools

Site Tools


el:ostype

Differences

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

Link to this comparison view

el:ostype [2016/01/01 22:39]
el:ostype [2016/01/01 22:39] (current)
Line 1: Line 1:
 +===== Ostype =====
 +
 +==== Format ====
 +
 +**ostype** \\
 +**ostype** ( )\\
 +
 +==== Description ====
 +
 +Returns a number representing the operating system/​software environment that this BASIC256 executable file was compiled for.
 +
 +^Return Values^^
 +^Value^Type^
 +|0|Windows|
 +|1|Linux|
 +|2|Macintosh|
 +
 +==== Example ====
 +
 +<​code>​
 +print "You are using a ";
 +if ostype() = 0 then
 +   print "​windows";​
 +else
 +   print "​unix/​linux";​
 +end if
 +print " machine."​
 +</​code>​
 +Will display something like
 +<​code>​
 +You are using a unix/linux machine.
 +</​code>​
 +
 +==== New To Version ==== 
 +
 +0.9.6.58
  
el/ostype.txt ยท Last modified: 2016/01/01 22:39 (external edit)