Conditional expressions can be used in almost any place to distinguish different configuration and platforms. An example is the use of shell scripts, which are totally different for UNIX and VMS.
Abbildung 4.3: Conditionally installation of scripts
The conditional form requires a list-parameter containing the key word
cond. The remaining list after cond is the conditional
expression. In the example in Figure 4.3, only the operating system type
is checked. The following special constructs are also allowed in conditional
expressions:
To get a t output value, the compare operation must be t or the
simple conditional value in the form is matched with
Abbildung 4.4: Example of complex conditional form
A non optimized and debug compilation is enforced for an operating system named ``HP/UX'' with a major version number lower than nine. In all other case this compilation flag override is ignored and the default flags are used.