Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c sharp or operator in if statement

//You can't just use:
if (5 == 5 || 6) { ERROR }
//With the || being the OR.

//You have to say:
if (5 == 5 || 6 == 6) { WORKED }

//Hope that helped! :)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sharp #operator #statement
ADD COMMENT
Topic
Name
8+1 =