
@dr-braur.bsky.social (Jakub Bukala)
One may ask: What's the difference between && and & in C#?
The end result in both cases will be the same, but && won't evaluate the second condition if the first one is false. It is more optimal, but, for example, if the second operator is a method, it won't be executed at all.
#unity #gamedev #cs
Posted at: 2025-03-24 09:10:52 UTC