Custom Command
FunctionsVariables Functions

$userVarRank

Return user's rank returned by $userleaderboard for a single user

Usage

$uservarRank[Variable name;Sorting Type;User ID (optional)]

Sorting Type

  • highest-first (Default): Uses the sorting type that displays the list from the highest value to the lowest.
  • lowest-first: Uses the sorting type that displays the list from the lowest value to the highest.
  • desc Deprecated: Legacy alias for lowest-first.
  • asc Deprecated: Legacy alias for highest-first.

Example:

Member
9/5/2026

!!exec Top 5
$userLeaderboard[money;highest-first;{top}. {username} - {value};5]

Custom Command
APP
9/5/2026

Top 5

  1. Member - 350
  2. Rake - 201
  3. Zero - 121
  4. Red - 53
  5. Azz - 22
Member
9/5/2026

!!exec Your rank is $userVarRank[money]

Custom Command
APP
9/5/2026

Your rank is 1

What if the user does not have the variable?

If the specified user does not have the variable defined, $userVarRank will return undefined.

Related Functions

Check out: $userLeaderboard

Check out: $setUserVar

Check out: $getUserVar

Check out: $deleteUserVar

Check out: $resetUserVar

On this page