Unity C# syntax question

“if (!Network.isClient && !Network.isServer)”

two things, can this be the same for java script? also what are the “!”'s for?

That's the same as (shortening words): if(nwork.client==false && nwork.isServ==false)

2 Answers

2
  1. yes it’s the same.
  2. the ! is changing the sign… for example, if the boolean var blah is true. than !blah returns false

Yes they are same for JS. “!” is “NOT”.