BE_StackPop

BE_StackPop ( name )

Returns the first value from the stack called name and removes it from the stack, reducing the stack count by 1.

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 :)

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.  See this for more info : https://www.thoughtco.com/definition-of-stack-in-programming-958162

Still need help? Contact Us Contact Us