Stack

This object provides a way of storing values just like stacking up a plate. You can push a value to the top of the stack and pop it off. You can only pop the values one by one off the stack and the last pushed value will be the first one to pop out.

Operations

PushValue

Stack.PushValue(stackName, value)

Pushes a value to the specified stack.

stackName

The name of the stack.

value

The value to push.

Returns

Nothing

GetCount

Stack.GetCount(stackName)

Gets the count of items in the specified stack.

stackName

The name of the stack.

Returns

The number of items in the specified stack.

PopValue

Stack.PopValue(stackName)

Pops the value from the specified stack.

stackName

The name of the stack.

Returns

The value from the stack.