[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]
The Logical type encompasses the logical flags true and false.
Operators
The unary operations in the following table take Logical as a right operand.
| Operator | Return |
|---|---|
! |
Logical |
The binary operations in the following table take Logical as a left operand.
| Operator | Right Operand | Return |
|---|---|---|
&&, || |
Logical |
Logical |
==, != |
Logical |
Logical |
The ternary operator in the following table take Logical as a left operand.
| Operator | Middle Operand | Right Operand | Return |
|---|---|---|---|
? : |
Any |
Any |
Any |
Code Example
The following code shows the isValid field being declared as a Logical and being set to true.
isValid : Logical = true;