# Count

TIP

  • count(<string | array>)
  • Returns the length of a string or the amount of elements in an array.

# Parameters

  • <string | array> The array or string to get it's size/length as string or array

# Example

1: $password$ = "test123"
2: if (count($password$) < 8) {
3:    sendMessage($player$, "Password must be minimum 8 characters.")
4: }