Format.ContextIf
Description
- Starts a menu/bar section , or shows a whole bar, depending on the active window, where the context is given by an expression.
Syntax
Parameters
- expr
- (mixed) caption list expression that must be evaluated to true for the bar/menu to be displayed
Examples
- *Format ContextIf (modem or a>0)
- Used as the first command of a bar, this would make the bar be displayed only when the dialup modem is connected, or variable a is greater than 0. A closing *Format EndContext command is not required in this situation.
- Used within another menu/bar, this would start a contextual section that is only shown when the dialup modem is connected, or variable a is greater than 0. In this case, it must be followed by a *Format EndContext command.