Skip to content

RemoveEachFromCustomTableWhereBlock

14.15

Class Documentation

Edit documentation

A loop that removes the entries of a custom table that the body selects. For each entry, the loop writes the key to IterKey and the value to IterValue and runs the body. After the body, the loop reads the bool variable ShouldRemove. If it holds true, the loop removes the entry. A value of another kind does not remove the entry.

The loop does not reset ShouldRemove between entries. A true that the body writes for one entry also removes the next entries, unless the body writes the variable for every entry.

Properties

IterKey

Embed<ScriptTableSet> = { "Table": {}, "Var": "" }
Edit documentation

The variable that receives the key of the entry before each run of the body.

IterValue

Embed<ScriptTableSet> = { "Table": {}, "Var": "" }
Edit documentation

The variable that receives the value of the entry before each run of the body.

ShouldRemove

Embed<BoolTableSet> = { "Table": {}, "Var": "ShouldRemove" }
Edit documentation

The bool variable that the body sets to true to remove the current entry.