Solved Amount of elements in list

  • 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 community!

    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.

enjoythemoment

New Member
Jan 1, 2020
5
0
1
How can i set variable to amount of list elements?

Example:

set {_le} to amount of elements in {%lower case arg-2%list::*}

Also:
How can i send every element of list separately?
if argument 1 is "lista":
if {klasylista::*} contains argument 2:
set {_le} to amount of elements in {%lower case arg-2%list::*}
send "&6&l========== &b&lKLASA &a&l%upper case arg-2% &6&l==========" to player
send " • %1st element of {%lower case arg-2%list::*}%" to player
send "&6&l=============================" to player
 
Last edited:
How can i set variable to amount of list elements?

Example:

set {_le} to amount of elements in {%lower case arg-2%list::*}

Also:
How can i send every element of list separately?
if argument 1 is "lista":
if {klasylista::*} contains argument 2:
set {_le} to amount of elements in {%lower case arg-2%list::*}
send "&6&l========== &b&lKLASA &a&l%upper case arg-2% &6&l==========" to player
send " • %1st element of {%lower case arg-2%list::*}%" to player
send "&6&l=============================" to player

Code:
size of {%lower case arg-2%list::*}

also don't use an expression as the start of a variable put something infront of it like:

{list::%lower case arg-2%::*}
 
Code:
size of {%lower case arg-2%list::*}

also don't use an expression as the start of a variable put something infront of it like:

{list::%lower case arg-2%::*}

Thank you!
[doublepost=1587385843,1587385259][/doublepost]
Code:
size of {%lower case arg-2%list::*}

also don't use an expression as the start of a variable put something infront of it like:

{list::%lower case arg-2%::*}
Is there way to send every element of list separately?
 
Status
Not open for further replies.