Stack/Queue Define

   

[FinalBuilder Professional Edition]

 

The Stack/Queue Define action is used for creating a new list and giving it a name.

 

StackQueueDefine

 

Stack/Queue Name - the name you want to give the list.  The other Stack and Queue actions refer to the list by name.

 

List Type - Stack (first in, last out), or Queue (first in, first out).  The type determines in what order the items in the list will be popped or iterated.

 

Stack/Queue examples

Say we have 3 items to put on the list, a, b, and c:

Push a
Push b
Push c

 

If we pop the items off a Stack, we get:

Pop c
Pop b
Pop a

 

If we pop the items off a Queue, we get:

Pop a
Pop b
Pop c