using "||" in "if" statement

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

dudle

Active Member
Jan 31, 2017
135
0
16
44
Can I use the "||" or "&&" in the skript if statement just like in java or is there any other way?

What I want to do is check if either of the specified variables in the if statements exist/are true. Is there a way to do this or do I need to check for each of the variables separately?
 
If you need this, it is because you're doing something wrong. Please explain the exact issue and I might be able to help out.
Already explained.. Ain't doing anything wrong, I need this to make something work. Ain't an issue, but a question I need a solution for
 
Already explained.. Ain't doing anything wrong, I need this to make something work. Ain't an issue, but a question I need a solution for
you didn't explain anything, this is just another XY problem that could be solved by using something else in a different way. For example, boolean variables.

The thing is: conditions list statements aren't a thing in Skript, but there aren't many cases where you actually need them, if you need it then you're probably doing something wrong.
 
Status
Not open for further replies.