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.

Solved 2 variables in 1 If query

Discussion in 'Skript' started by MomoHD, Oct 13, 2020.

Thread Status:
Not open for further replies.
  1. MomoHD

    MomoHD Member

    Joined:
    Nov 23, 2019
    Messages:
    18
    Likes Received:
    0
    Hello, I have just written a large script where I ask once: 1. If you have my name
    2. When a variable is true
    3. When a variable is false

    Now I had to write the same for the True variable as I did for my name and the text is very large. Therefore I wanted to ask whether it is possible to specify 2 things in an If query.

    Example:
    Code (Text):
    1. if {variable1} is true, if {variable2} is true:
    --- Double Post Merged, Oct 13, 2020, Original Post Date: Oct 13, 2020 ---
    Sry for my bad english, im from Germany
     
  2. Best Answer:
    Post #2 by Wynnevir, Oct 14, 2020
  3. Wynnevir

    Wynnevir Well-Known Member

    Joined:
    Jul 9, 2017
    Messages:
    1,016
    Likes Received:
    62
    Yes:emoji_slight_smile:
    if {variable1} and {variable2} are true:
    It will work for or as well if you want say code to execute if either is true/false.
     
    • Informative Informative x 1
  4. MomoHD

    MomoHD Member

    Joined:
    Nov 23, 2019
    Messages:
    18
    Likes Received:
    0
    Oh nice
    Thanks
     
Thread Status:
Not open for further replies.

Share This Page

Loading...