Contents - Index


Repeat .... Until (Macro Command)

 

Repeat  ,,,,,,,  Until (X-Y>5)

The commands in the macro file between the Repeat and Until keywords (which must be on separate lines) are repeated in sequence until the expression with the parentheses is true.  Each command appears on a separate line.  The parentheses are optional.  Note that any legal expression involving existing variables that are defined in the Macro or EES program (after the Solve command has been issued) can be used in the expression.  If the expression is never true, the  macro instructions will be repeated indefinitely or until the Esc key or Macro Window stop button is pressed.  Nested Repeat-Untils are permitted.

 

Example:

i=10  //Delete columns 5-10 from Lookup 2

TN$='Lookup 2'

repeat

  C$=LookupColName$(TN$,i)

  DeleteLookupColumn TN$ C$

  i=i-1

until (i<5)

 

MacroCommands