User Tools

Site Tools


en:ostype

Differences

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

Link to this comparison view

en:ostype [2016/01/01 22:41]
127.0.0.1 external edit
en:ostype [2020/02/28 10:46]
Line 1: Line 1:
-===== Ostype (Function) ===== 
- 
-==== Format ==== 
- 
-**ostype** \\ 
-**ostype** ( )\\ 
- 
-returns //positive_integer_value// 
- 
-==== 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| 
-|3|Android| 
- 
-==== Example ==== 
- 
-<code> 
-print "You are using a "; 
-if ostype() = 0 then 
-   print "windows"; 
-else 
-   print "non-windows"; 
-end if 
-print " machine." 
-</code> 
-Will display something like 
-<code> 
-You are using a non-windows machine. 
-</code> 
- 
-==== See Also ==== 
-{{page>en:start#Other Statements and Functions&noheader}} 
- 
-==== History ====  
-|0.9.6.58|New To Version| 
-|1.0.1.0|Added Android| 
- 
  
en/ostype.txt · Last modified: 2020/02/28 10:46 (external edit)