Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 - Asset Console Creating an Access Definition File Guide


[DO] (loop block)

[DO] repeats processing that is not dependent on specific information. To terminate the loop, specify the $BREAK embedded function.

Organization of this page

Syntax

[DO]
  data-processing
  $BREAK()
[DO_END]

Values

Example

The following example shows a loop block. This example ends the loop block once COUNT has been output ten times within the loop block:

[SET_VALUE]
  CNT = 1
[DO]
  [IF]
    CNT > 10
    [THEN]
      [SET_VALUE]
        $BREAK()
  [IF_END]
 
  [SET_VALUE]
    MSG = ' COUNT = ' + CNT
    $ECHO(MSG)
    CNT = $ADD(CNT,1)
[DO_END]
Execution result:

COUNT = 1

COUNT = 2

COUNT = 3

COUNT = 4

COUNT = 5

COUNT = 6

COUNT = 7

COUNT = 8

COUNT = 9

COUNT = 10