|
|
Section Intro: Elsewhen Module
Elsewhen ModuleSynopsis:
This module is provided for those programmers who feel more comfortable with
a balanced tag syntax for flow control over a balanced brace syntax.
Using the tags in this package will greatly reduce the number of
Commands:
First TEST is evaluated. If the result is a non-whitespace only string,
the statements between the THEN-CLAUSE and the ELSE-CLAUSE are
evaluated. Otherwise, if the the ELSE-CLAUSE is present, it is
evaluated. Although Meta-HTML has an <if <get-var foo bar>> "Either FOO or BAR is present" <else> "Neither FOO nor BAR is present" </if>
Evaluate TEST. If the result is a non-empty string,
then execute the BODY statements. If the tag <elsewhen>
appears in the body, then the commands between that tag and the closing
</whenelse> will be executed if, and only if, the TEST evaluates
to the empty string. This is a cleaner way to handle optional multiple
statement execution rather than dealing with quoting everything inside
of an
Edit Section
![]() The META-HTML Reference Manual V2.0 Copyright © 1995, 1998, Brian J. Fox Found a bug? Send mail to bug-manual@metahtml.org |