- Home /
Question by
kroltan bahuman · Oct 14, 2010 at 12:20 AM ·
if-statements
"or": HELP PLEASE!!!
i noticewd that UnityScript has no "or" conditions, is there a way around? like a elseif or a different spelling?
Comment
Best Answer
Answer by Grumblekeen · Oct 14, 2010 at 12:30 AM
Use ||. Incidentally, and is &&. Just like Javascript.
UnityScript is basically Javascript, almost, sort of. :)
Edited to clarify:
if(this || that)
DoSomething();
thank you. i never used javascript before, so i couldn't know.
Your answer
![](https://koobas.hobune.stream/wayback/20220613075623im_/https://answers.unity.com/themes/thub/images/avi.jpg)