Solved Can we use logical operators?

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

krulaks

Member
Aug 9, 2017
17
0
0
24
Can we use logical operators such as AND & OR in Skript?
And if it is possible can somebody give me simple example? - Pretty please :emoji_stuck_out_tongue:
 
It depends how and where you're using it because you can do stuff such as:
code_language.skript:
set {_list::*} to 1, 2, 3 and 4
if {_list::*} contains 1 or 4:
  #do stuff
But not stuff like this:
code_language.skript:
if player is online or player doesn't have 4 golden apples:
Although with skQuery you can do stuff like this:
code_language.skript:
#This is equal to:
#if player is online and player has permission "test":
if check [player is online]->[player has permission "test"]:
  #do stuff
 
Status
Not open for further replies.