Skip to main content

List Take

Runs on: Shared (backend or chatbox overlay).

Keeps the first or last Count items of a list. The original list is not modified. Asking for more items than the list holds returns the whole list.

Inputs​

NameTypeDescription
listlistThe list to trim.
countnumberHow many items to keep. Defaults to 5.

Outputs​

NameTypeDescription
resultlistThe trimmed list, with the same item type as the input.

Configuration​

  • Keep: First or Last. The end to keep items from.

Example​

Chain List Sort (by score, High → Low) into List Take with Keep First and Count 5 for a !top command. Use Keep Last on an unsorted list of recent joiners for the last 5 to join.