If Data Structure Empty


With this action you can check a to see if the given data structure is empty or not. You first need to pick the type of data structure to check for (either a List, a Map, or a Stack - no grids since they cannot even be empty) and then you supply the variable that holds the data structure index (as returned by the actions Create List, Create Map, and Create Stack). The action will return true if the data structure is empty, and false if it is not. Note that you can flag "not" in the action to check if a data structure does hold data by checking if it is not empty.

Note that to add actions into the "if" block, they should be dropped to the side of the action, as shown in the image below:
If Empty Drop Actions

These actions will now be run if the "if" evaluates to true, while any actions dropped elsewhere will be performed after the "if" block.

Action Syntax:

If Data Structure Empty Syntax


Argument Description
Structure The type of data structure to check (List, Map, or Stack)
Variable The variable holding the data structure index


If Data Structure Empty Example
The above action block code checks to see if the data structure referenced in the global variable is not empty, and if that is the case, the data structure is cleared.