|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Arrays and Data-Structures > ARS. - Array's > !ARS. - Queue Operations > ARS. - Queue Operations |
MiniRobotLanguage (MRL)
ARS.QuePush
Push a value to the end of the queue.
Intention
The ARS.QuePush command adds a value to the end of the specified queue.
This command is useful for managing queues where the order of elements is important.
Illustration
[ Value1 Value2 ] → [ Value1 Value2 Value3 ]
Syntax
ARS.QuePush|$$ARR|$$VAL
Parameter Explanation
$$ARR - (Variable)
The handle of the queue to which the value will be pushed.
$$VAL - (String)
The value to be pushed to the end of the queue.
Example
'***********************************
' ARS.QuePush - Sample
'***********************************
QUE.New|$$QUE
ARS.QuePush|$$QUE|Value1
ARS.QuePush|$$QUE|Value2
DBP.New queue after pushing values: $$QUE
'
QUE.New|$$QUE
ARS.QuePush|$$QUE|10
ARS.QuePush|$$QUE|20
DBP.New queue after pushing values: $$QUE
ENR.
Remarks
-
Limitations:
-
See also:
•