Using programming commands in macros

Programming commands work across WordPerfect Office applications. They control macro functions by

 
specifying conditions under which other macro commands or statements operate (for example, Case, IfElse, Endif, Switch, and EndSwitch)

For example,

  If (x = "A")   LineHeightDlg   Else   LineSpacingDlg   Endif   

displays the Line height dialog box in WordPerfect if x equals the value “A”. If x has another value, the subroutine displays the Line spacing dialog box. The If, Else, and Endif commands are programming commands. LineHeightDlg and LineSpacingDlg are product commands.

 
repeating macro commands or statements a specified number of times or until certain conditions are met (for example, For, Endfor, Repeat, Until, While, or EndWhile)
 
invoking or jumping to a specified subroutine with Call or Go

Programming commands and product commands are not case sensitive.

You can add blank lines to separate programming commands and subroutines, and you can indent lines to show levels of nested commands. Some macro commands cannot be recorded. You must type or insert them using the macro command browser. For information about the macro command browser, see “Using the macro command browser.”

Using programming commands in macros