HomeI...!ifnset!ifset
User Manual UDO > Command index > I... Index

!ifos

Query operating system. The following codes are currently available for supported operating systems:

beos BeOS
dos DOS
hpux HP-UX
linux Linux
macos Mac OS
macosx Mac OS X
nextstep NeXTStep
sinix SINIX
sunos SunOS
tos Atari TOS
win Windows (32 Bit)
Type & position: command, preamble & main part
Syntax: !ifos [<system>]
Description: Dieses Kommando testet das aktuelle Betriebssystem, auf dem UDO läuft. Enthält eines der Kürzel der Betriebssysteme, so wandelt UDO alle Zeilen zwischen !ifos und !endif bzw. !else um. Das Beispiel zeigt, wie Sie testen können, ob UDO unter Linux läuft.
Description: This command tests the current operating system UDO is running on. If match one of the abbreviations of the operating systems UDO will convert all lines that are used between !ifos and !endif or !else. If doesn't match any of the abbreviations of the operating systems UDO will ignore all lines before !endif or !else. The example shows how you can test if UDO runs with Linux.
Example: !ifos [linux]
Exists since: Release 5 Patchlevel 16
See also: !ifnos, Query commands

Copyright © www.udo-open-source.org (Contact)
Last updated on May 19, 2014

HomeI...!ifnset!ifset