User Tools

Site Tools


en:ostype

Ostype (Function)

Format

ostype
ostype ( )

returns integer_expression

Description

Returns a number representing the operating system/software environment that this BASIC256 executable file was compiled for.

Return Values
ConstantValue
OSTYPE_WINDOWS0
OSTYPE_LINUX1
OSTYPE_MACINTOSH2
OSTYPE_ANDROID3
2016/08/14 14:45 · admin

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

History

0.9.6.58New To Version
1.0.1.0Added Android
1.99.99.58Added Named Constants
en/ostype.txt · Last modified: 2016/08/14 14:52 by admin