Skip to main content
Unity3D

Introduction to C# in Unity3D #7: Operators – Part 2 📠

By February 9, 2021No Comments
C# Unity3D Operators
https://www.youtube.com/watch?v=VzCa9cdE2dk&feature=youtu.be

📠Comparison operators
📠A comparison operator compares two values.📠 <, >, <= , >=

📠Logical Operators
📠Logical operators are used in decision making and loops. Logical operators perform logical operation such as `And`, `Or` and `Not`. These operators evaluate expressions and return boolean values.
📠And
The logical And( &&) operator returns true if both operands evaluate to the boolean true
📠Or
If one of the two operands is true then the expression evaluates to true using the Or || operator
📠Not
The Not ! operator evaluates an expression and inverses the boolean result

Leave a Reply