en:ostype [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:ostype

## 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

    print "You are using a ";
    if ostype() = 0 then
       print "windows";
    else
       print "non-windows";
    end if
    print " machine."

Will display something like

    You are using a non-windows machine.

### See Also

EditVisible, Include, RegexMinimal, Ostype, System, Version

### History

0.9.6.58 | New To Version
1.0.1.0 | Added Android

en/ostype.txt · Last modified: 2014/02/10 03:19 by admin