Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Unity if or

The symbol for OR is '||'

if( someRandomVariable == true || somethingElse == true || insaneRageMode == true )
   // do stuff
 
PREVIOUS NEXT
Tagged: #Unity
ADD COMMENT
Topic
Name
3+6 =