LST. - List Management

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Arrays and Data-Structures > LST. - List Arrays > Deque-Operations >

LST. - List Management

LST.PeekLast

Previous Top Next


 

MiniRobotLanguage (MRL)

 

LST.PeekLast

Retrieve the last value in the List without removing it.

 

 

Intention

 

The LST.PeekLast command retrieves the last value in the List without removing it.

This is useful when you need to inspect the last item without altering the List.

 

 

Syntax

 

 

LST.PeekLast|P1|P2

 

 

Parameter Explanation

 

P1 - (Variable)

 The handle of the List to peek into.

P2 - (Variable)

 The variable to store the last value.

 

 

Example

 

'***********************************

' LST.PeekLast - Sample

'***********************************

LST.New|$$LST

LST.Add|$$LST|Hello

LST.Add|$$LST|World

LST.PeekLast|$$LST|$$RES

DBP.Last item in List: $$RES

LST.End|$$LST

ENR.

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: