From the course: Introduction to Dart

Unlock the full course today

Join today to access over 24,600 courses taught by industry experts.

Assignment and logical operators

Assignment and logical operators - Dart Tutorial

From the course: Introduction to Dart

Assignment and logical operators

- [Instructor] Assignment and logical operators are fundamental programming concepts. They're used to operate on variables and evaluate logical expressions. A variable is assigned a value by an assignment operator, whereas logical operators are used to compare two or more expressions and return a Boolean value, indicating whether the comparison is true or false. If we have the expression x equals to three, the basic assignment operator will assign the value three to the x variable. Similarly, if we have the expression x plus equals to three, the compound assignment operator will add three to the current value of x and assign the result to x. In addition to assignment operators, there are also several types of logical operators in Dart, including the AND, OR, and the NOT operators. These are used to combine and evaluate the truth of two or more conditions. For example, if we have the expression x equals to three and y equals…

Contents