User Manual UDO > Command index > I... Index


Query the 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: !ifnos [<system>]
Description: This command tests the current operating system UDO is running on. If doesn't match any of the abbreviations of the operating systems UDO will convert all lines that follow !else if it is used. If !else isn't used UDO will ignore all lines until an !endif. The example shows how you can test if UDO does not run on an Apple Macintosh.
Example: !ifnos [macos]
Exists since: Release 5 Patchlevel 16
See also: !ifos, Query commands

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