Solved deleting deep 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.

cheatchki

Supporter ++
Jun 26, 2017
49
1
8
So this is example code, its not actual code i am using but very very similar code, basically with just different variable names

but now I want to erase everything from {x::*}
I tried
code_language.skript:
set {x::y::1} to true
set {x::y::2} to true
set {x::z::1} to false
set {x::z::2} to true

delete {x::*}
then
code_language.skript:
set {x::y::1} to true
set {x::y::2} to true
set {x::z::1} to false
set {x::z::2} to true

loop {x::*}:
    delete {x::%loop-index%}
however none of these worked and after some testing I did manage to get something like

code_language.skript:
set {x::y} to true
set {x::y::1} to true
set {x::y::2} to true
set {x::z} to true
set {x::z::1} to false
set {x::z::2} to true

loop {x::*}:
    loop {x::%loop-index%::*}:
        delete {x::%loop-index-1%::%loop-index-2}
    delete {x::%loop-index-1%}
And this worked however this seemed horridly ineffecient, and I would prefer to be able to just delete it all at once, but all the methods except the last one seemed to fail. Anyone else other suggestions?

side note: not sure if it fully matters however I am using a MySQL and i have tried on a SQlite, however i have not tried on the csv format
[doublepost=1500895731,1500893140][/doublepost]Nvm I pulled a dumb and realized the variable names were just slightly off on my first attempts!
 
Status
Not open for further replies.