Sign In

$userLeaderboard[]

Creates a user leaderboard for a variable

v2.0.0+ Requires Brackets

Usage

$userLeaderboard[;;;;;;;]

Arguments

NameTypeRequiredDescription
name
StringYesThe name of the variable
sort type
NoThe sort type for the leaderboard, either asc (ascending) or desc (descending)
max
NumberNoThe maximum number of rows per page
page
NumberNoThe page number
separator
StringNoThe separator to use for each row
envValue
StringNoThe variable name to use for $env. Retrieve the id with $env[<name>;id] and the value with $env[<name>;value]
envPosition
StringNoThe variable name to use for $env. Retrieve the position with $env[<name>]
code
StringNoCode to execute for each row. Remember to use $return, otherwise it will not return anything.

Output

String

Was this page helpful?