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 <systeme>eines der Kürzel der Betriebssysteme, so wandelt UDO alle Zeilen zwischen !ifos und !endif bzw. !else um. Das Beispiel zeigt, wie man testen kann, ob UDO unter Linux läuft. |
| Description: | This command tests the current operating system UDO is running
on. If <systems>match one of the abbreviations of the operating systems UDO will convert all lines that are used between !ifos and !endif or !else. If <systems>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 |