[get] first empty slot of %inv:EXPR% — Expressions

[get] first empty slot of %inv:EXPR%
Inventory1.0.0

Description

Returns the index of the first empty slot in an inventory, or -1 if full.

Examples

set freeSlot to get first empty slot of gui

All Possible Usages (2)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

first empty slot of <inv>
get first empty slot of <inv>

Related (Inventory)