c_while

Top  Previous  Next

Procedure for generating loops for the command line.

With `c_while`, one or more complex expressions can be repeated as long as the preceding causal condition remains met.

It is important that the expressions within the loop are executed only when the condition holds true.

Parameter

/H

Help is provided for the `c_while` function. The help text contains a brief description of the function as well as instructions on how to call it.

Specifying the parameter is optional and is done using either `-H` or `/H` (equivalent inputs).

Syntax

c_while   condition

expression1

...

expressionn

c_endWhile

with n IN,

The specified condition must be a function with a return value of ∈ {0, 1}. There are no restrictions on the number or complexity of the expressions executed while the specified condition is met.

Beispiel

Kommandozeileneingaben:

c_while IdentifyElement

CopyElement

c_endWhile

 

c_while Object

AddString

AddText txi/1000

c_endWhile

Siehe auch