do-while

Causes the actions specified by <arg-actions> to be repeated while the conditions specified by <arg-conditions> evaluate to true.

Example

<do-set-local-variable name="counter"> <arg-string>  <token-text>1</token-text> </arg-string></do-set-local-variable><do-while> <arg-conditions>  <and>   <if-local-variable name="counter" op="not-gt" mode="numeric">10</if-local-variable>  </and> </arg-conditions>  <arg-actions>   <do-trace-message level="0" color="yellow">   <arg-string>     <token-text>Counter = </token-text>     <token-local-variable name="counter"/>   </arg-string>  </do-trace-message>  <do-set-local-variable name="counter">   <arg-string>    <token-xpath expression="$counter + 1"/>   </arg-string>  </do-set-local-variable> </arg-actions> </do-while>

Allowed Content

Element

Description

arg-conditions

Conditions argument.

arg-actions

Actions argument.

Attributes

Attribute

Possible Values

Default Value

disabled

true | false

True if this element is disabled.

false

notrace

true | false

True if this element should not be traced during execution of the policy.

false

Content Rule

( arg-conditions , arg-actions )

Parent Elements

Element

Description

actions

Actions that are performed by a <rule>.

arg-actions

Actions argument.