User Tools

Site Tools


el:ostype

Ostype

Format

ostype
ostype ( )

Description

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

Return Values
ValueType
0Windows
1Linux
2Macintosh

Example

print "You are using a ";
if ostype() = 0 then
   print "windows";
else
   print "unix/linux";
end if
print " machine."

Will display something like

You are using a unix/linux machine.

New To Version

0.9.6.58

el/ostype.txt · Last modified: 2020/02/28 10:46 (external edit)