Solved How to check if multiple variables are true?

  • 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.
May 27, 2020
4
1
3
28
I'm relatively new to skript, so work with me here,

I have a parkourdone::%player%.easy variable that goes from easy on the end to medium, hard, and extra hard. The variables are set to true or false at a certain point, but how can I check if all 4 variables are true at one point?
Example:

Code:
on rightclick on a sign:
     1st line of clicked block is "Parkour Finished!"
     if {parkourdone::%player%.easy} is true and {parkourdone::%player%.medium} is true...
     #do stuff

and so on up till extra hard.
Obviously that third line of code doesn't exist within skript, so how can I check the value of multiple variables at once? (Similar to java's ||).
 
You would do a new line for each condition.

Code:
if {parkourdone::%player%.easy} is true:
    if{parkourdone::%player%.medium} is true:
 
Status
Not open for further replies.