Amount (Expression) — Skript

Addon: Skript · Category: Expression · Since: 1.0, 2.13 (amounts of)

Syntax

[the] amount[s] of %objects%

Description

The amount of something. Using 'amount of {list::*}' will return the length of the list, so if you want the amounts of the things inside the lists, use 'amounts of {list::*}'.

Examples

message "There are %amount of all players% players online!"
if amount of player's tool > 5:
if amounts of player's tool and player's offhand tool > 5:

View source