Why doesn't the logical operator ||?

if (index == -1) || (run > 1)
Displays an error:

Invalid term "||" in the expression
April 19th 20 at 12:09
2 answers
April 19th 20 at 12:11
Solution
MARCH TO TEACH SESAC.
It is not necessary in unity to climb without the knowledge sharp.
Yes, I'm too lazy to answer such childish questions that elementary-searched by poiskovikam!
curated from God) - cora_Flatley commented on April 19th 20 at 12:14
@cora_Flatley, really :)
In unity without any knowledge of C# to go - waste of time - nathanael.Daugher commented on April 19th 20 at 12:17
@cora_Flatley, let's start simple - this is not a unity question. And sierpe. By the way, it is necessary that I edit the tags to make - Ottis.Windler36 commented on April 19th 20 at 12:20
@nathanael.Daugher,
In unity without any knowledge of C# is a waste of time
=>
unity without C# - money (C)
||
anyway a hundred times to Google
etc..
;))) - quincy_Graham commented on April 19th 20 at 12:23
April 19th 20 at 12:13
Solution
if (index == -1 || run > 1)

Find more questions by tags C#