Comparing two variables

  • 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.

HKPNW-Owner

Member
Feb 2, 2017
33
0
6
27
Hello! I'm writing a skript which i'm trying to compare two variables are same or not. It's something like that:

Code:
        if {warnings.%arg-1%} contains {warning.chances}:
            wait 5 tick
            set {ban.command} to yaml value "PunishmentSK.Punish.Command" from file "plugins\PunishmentSK\config.yml"
            make console execute "%{ban.command}% %arg-1%"
        else:
            add 1 to {warnings.%arg-1%}

But it's not working at all. I'm trying to compare {warnings.%arg-1%} with {warning.chances} if they are same or not. How can i do that?
 
Use if {_var1} is {_var2}
 
[doublepost=1554546801,1554212560][/doublepost]maybe use "is bigger than" or "is smaller than"
 
Last edited:
Status
Not open for further replies.