| THE META-HTML LANGUAGE REFERENCE MANUAL

| [TOC] |

## Manual Page Viewer

Name: IF

Section: Flow Control

Synopsis:

`<if TEST [THEN] [ELSE]>`

Description:

First TEST is evaluated. If the result is a non-whitespace only string, the THEN clause is evaluated, otherwise, the ELSE clause is evaluated. Although Meta-HTML has an `or` function, you can efficiently test for the presence of any of a group of variables with code similar to the following:

      <if <get-var foo bar>
          "Either FOO or BAR is present"
        "Neither FOO nor BAR is present">

Edit Pointer
Function Index
Variable Index
Variable Editor

The META-HTML Reference Manual V1.4 Copyright © 1995, 1996, Brian J. Fox, 1996, 1997 Universal Access Inc.
Found a bug? Send mail to bug-manual@metahtml.com