BE_StackPop

BE_StackPop ( name )

A stack is an internal plugin storage type, where you push data into a stack ( like a list of values ) and Pop data out.  In the plugin, stacks are LIFO ( Last In First Out ) so when you push a value onto the named stack, it will be the next value to POP out of the stack.

This function returns the last value pushed onto stack name.

Version : 4.1 

Parameters : 
name : the name of the stored stack.  Stacks have names, much like variables do.

Result : just returns you back the value you sent it, and removes that value from the stack.  Once the stack is empty, or if name doesn't exist, it returns an empty result.

 

Notes : Be careful when testing code and using the Pop function in the data viewer as once a value is removed from the stack, it's deleted - that's the intention :)

Have more questions? Submit a request

0 Comments

Article is closed for comments.