Solved How to detect last in a list variable?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Jan 19, 2018
18
1
3
Basically what the title says, is there a way to detect the last number in a list variable? So for example, I have "Line 1" stored in {example::1} and "Line 2" stored in {example::2}, and so on up to 10. Is there a way to make Skript detect the max is 10 and make it use the value somewhere? Like, for example, I want Skript to delete the latest variable in the list, so I'd do "delete {example::10}", but what if I don't know what is the latest? Is there a way to do this?
 
Status
Not open for further replies.