• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

If Else

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Klausbdl edited

Switch case with if statment to go to next case?

Oct 16, '22 if statement·switch-case·if else

1 Reply

0 Votes

avatar image

unity_hosein answered

How to check for an empty array? Closed

Nov 13, '21 c#·array·findgameobjectswithtag·if else

1 Reply

0 Votes

avatar image

Virtual_TUe asked

Randomising list of integers and removing them from list once the task assigned to the integer in the project is completed

Oct 28, '20 list·random·random.range·count·if else

0 Replies

0 Votes

avatar image

codedbythet asked

If Statement Help

Oct 14, '20 in Help Room

0 Replies

0 Votes

avatar image

AG45_ commented

Object doesn't move

Aug 26, '20 movement·vector3·transform.position·if-statements·if else

2 Replies

0 Votes

avatar image

unfixedacorn answered

If/else statement is always else

Jul 23, '20 in Help Room

1 Reply

0 Votes

avatar image

andrew-lukasik edited

How to check if the difference between any pair of numbers in an array is less than some value? Closed

Apr 6, '20 scripting problem·loop·while·if else

0 Replies

0 Votes

avatar image

K0ST4S answered

How to turn on and off a bool with a button press

Apr 21, '19 in Help Room

3 Replies

0 Votes

avatar image

RayDart commented

If else not working as intended

Feb 10, '19 if else

3 Replies

0 Votes

avatar image

emlin_ commented

If-statements doesnt seem to be working.. (CODE IS CORRECT),Why isnt Unity seeing the if-statements?

Aug 13, '18 in Help Room

1 Reply

0 Votes

avatar image

RVDL_IT commented

Making a Toggle Button for an object in a players hand

Mar 31, '18 boolean·if else

2 Replies

0 Votes

avatar image

MechaWolf99 commented

If statement seeming to give false positive

Feb 4, '18 scripting problem·if statement·looping·if else

2 Replies

0 Votes

avatar image

CurtMC answered

How to change scenes based on an if else statement C#

Oct 23, '17 in Help Room

1 Reply

0 Votes

avatar image

Dragate edited

Convert my if else statement to a loop

Oct 5, '17 in Help Room

1 Reply

0 Votes

avatar image

MaxGuernseyIII commented

How to use multiple If statements? Or can I use relational operators in switch statements?

Oct 3, '17 gameobject·if statement·operator·switch-case·if else

1 Reply

1 Votes

avatar image

Vollmondum commented

Why is this fi statement not working??

Jul 24, '17 in Help Room

1 Reply

0 Votes

avatar image

CarterG81 commented

Why can't won't my if then statements work?

Feb 16, '17 variable·variables·if-statements·integer·if else

1 Reply

0 Votes

avatar image

YardGnomeNinja published

Getting error Unexpected symbol if Closed

Dec 1, '16 if else

1 Reply

0 Votes

avatar image

Vyil asked

Text based game C#, if key selected>open door,Text based game, using boolean to pick up key and open door

Oct 29, '16 in Help Room

0 Replies

0 Votes

avatar image

kuro_moonwatyr published

If/Then Conditional Ignoring Usual Logic C#

Jul 16, '16 sprites·logic·conditional·if else

0 Replies

0 Votes

avatar image

jonahsrocket commented

Open and close a dooor

Jul 15, '16 in Help Room

1 Reply

0 Votes

avatar image

Fortecs edited

Help me replace tons of "if" on the adequate code.

Jul 12, '16 in Help Room

0 Replies

0 Votes

avatar image

RyanDiCenzo answered

Disabling function of a key

Jul 3, '16 if-statements·if statement·if-else·if else

1 Reply

0 Votes

avatar image

Pierce95 answered

How to turn off/on a collider using a bool variable from another script

Jun 15, '16 in Help Room

1 Reply

0 Votes

avatar image

Jalah_LLC answered

Click on specific object to win game and move to next level please help!

Mar 22, '16 in Help Room

1 Reply

0 Votes

avatar image

usalalas answered

How to use IF in Unity for selection MyScript

Dec 26, '15 in Help Room

1 Reply

0 Votes

avatar image

Dave-Carlile commented

nested if stop working

Nov 19, '15 in Help Room

0 Replies

0 Votes

avatar image

AhadKhan98 commented

How to put an if statement inside an if statement?

Nov 9, '15 in Help Room

3 Replies

0 Votes

avatar image

pkwe commented

If Else problem

Oct 13, '15 in Help Room

1 Reply

0 Votes

avatar image

Denvery edited

Problems with debug and if-statement

Oct 11, '15 in Help Room

1 Reply

0 Votes

  • 1
  • 2
  • ›

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Related Topics

c# if statement if-statements if if-else boolean javascript bool operator scripting problem unity 2d else if beginner nested button variables random.range variable movement switch-case enum scene load looping trigger inputfield


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges