Core.Terms.LogicNot

From emotive
Jump to navigation Jump to search

Classification

Name LogicOr
Short Description Represents the Boolean negation
Class Term
Extension OTX Core library
Group Operations
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

BooleanVariable = !BooleanTerm1;

Description

LogicNot is a BooleanTerm which represents the Boolean negation. Returns true if and only if the operand is false. The LogicNot operator is used according to the C# notation for logical operation in the formulation of conditions etc. The following operator can be used: !

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
Boolean The returned Boolean value of the negation of the BooleanTerm operand

Properties

Name Data Type Class Default Cardinality Description
Terms Boolean Term - [1] Represents the BooleanTerm operand of the negation.

OTL Examples

Boolean MyValueOfBool1 = true;
Boolean result;

result = !MyValueOfBool1;
result = !false;

See also

LogicAnd
LogicOr
LogicXor