Adobe framemaker 6.0 User Manual
170
ADOBE FRAMEMAKER 6.0
MIF Statements for Structured Documents and Books
If, ElseIf, and Else statements
If, ElseIf, and Else statements specify clauses within ContextFormatRule and LevelFormatRule statements.
In a ContextFormatRule statement, they specify a context and one or more statements that define how to
change formatting when the context applies.
In a ContextFormatRule statement, they specify a context and one or more statements that define how to
change formatting when the context applies.
If an If or ElseIf statement does not include a Context or Level statement, or the Context or Level statement
contains an empty string, this indicates that the If or ElseIf statement applies in all contexts.
contains an empty string, this indicates that the If or ElseIf statement applies in all contexts.
In a ContextFormatRule statement, If and ElseIf, and Else statements take the following form:
In a LevelFormatRule statement, If and ElseIf, and Else statements take the following form:
<If
Begin If clause
<Context
contextstring>
String specifying a context, such as
Section < Section
. If this context applies to the element, the follow-
ing formatting statements are used to format the element.
<
Formatting statement>
A statement (such as a
FormatTag
or
FmtChangeListTag
state-
ment) that specifies how to change the formatting when the
Context
statement applies (see “Formatting statements,” next, for a list of for-
matting statements)
matting statements)
…
>
End of
If
statement
<ElseIf
<Context
contextstring>
<
Formatting statement>
…
>
End of
ElseIf
statement
<Else
An optional Else clause
<
Formatting statement>
…
>
End of
Else
statement
<If
Begin If clause
<Level
levelstring>
String specifying a level of nesting, such as
1
or
5
. If the element is
nested to this level, the following formatting statements are used to
format the element.
format the element.
<
Formatting statement>
A statement (such as a
FormatTag
or
FmtChangeListTag
state-
ment) that specifies how to change the formatting when the
Level
statement applies (see “Formatting statements,” next, for a list of for-
matting statements)
matting statements)
…
>
End of
If
statement
<ElseIf
Begin ElseIf clause