Skip to content

Pop

Name Mandatory Description Default Type
⬅️ Input Any input is ignored. None
Output ➡️ The element popped from the sequence. Any
Name No The name of the variable. `` StringVar(Any)
Key No The key of the value to read from the table (parameter applicable only if the target variable is a table). none Any
Global No If the variable is available to all of the wires in the same mesh. false Bool

Pops (removes and outputs) the last element of the sequence variable. Works only on sequences. If the variable is not a sequence or the sequence is empty, an error is thrown.

Examples

1
2
3
4
5
; ; pop last element from a local sequence
[10 20 30 40] >= seq ; ; create a local sequence
Get(seq) | Log ; ; local sequence => [10, 20, 30, 40]
Pop(Name: seq) | Log ; ; pops the last element as output => 40
Get(seq) | Log