1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

(SkUtilities) Deleting a String From YAML

Discussion in 'Skript' started by rustedst, May 22, 2020 at 10:13 AM.

  1. rustedst

    rustedst Active Member

    Joined:
    Apr 24, 2020
    Messages:
    35
    Likes Received:
    0
    I have a YML file like this:
    And I want to delete one of these like:
    Code (Text):
    1. if {_x} = 8433 and {_y} = 61 and {_z} = 1261:
    2.     #delete the line which contains those values
    How do I do that?
     
  2. 10splaya

    10splaya Member

    Joined:
    Jun 13, 2017
    Messages:
    15
    Likes Received:
    0
    Loop through the node. Also, you cannot have 3 conditions. You have to have 3 if statements using Skript.

    Example:

    Code (Text):
    1. if {_x} = 8433:
    2.     if {_y} = 61:
    3.         if {_z} = 1261:
    4.             do stuff
     
Loading...