Skip to content

Drop

Name Mandatory Description Default Type
⬅️ Input Any input is ignored. Any
Output ➡️ The input is passed through as the output. 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

Drops the last element of the sequence variable. Works only on sequences. If the variable is not a sequence, it simply passes through without failing.

Examples

1
2
3
4
5
; ; drop last element from a local sequence
[10 20 30 40] >= seq ; ; create a local sequence
Get(seq) | Log ; ; local sequence => [10, 20, 30, 40]
Drop(Name: seq) ; ; drops the last element i.e., 40
Get(seq) | Log