LogicalCompare¶
Logical comparison expr ASR node.
Declaration¶
Syntax¶
LogicalCompare(expr left, cmpop op, expr right, ttype type, expr? value)
Arguments¶
| Argument Name | Argument Description | 
|---|---|
| 
 | left side of the comparison operand | 
| 
 | right side of the comparison operand | 
| 
 | comparison operator | 
| 
 | table entry type | 
| 
 | expression value | 
Return values¶
The return value is the expression that the LogicalCompare represents.
Description¶
LogicalCompare represents logical comparison operation.
Comparison operation can be:
- Equal to or not equal to - .TRUE.
- Equal to or not equal to - .FALSE.
Types¶
Only accepts .TRUE, .FALSE.
Examples¶
.FALSE. == .TRUE.
ASR:
(TranslationUnit
    (SymbolTable
        1
        {
        })
    [(LogicalCompare
        (LogicalConstant
            .false.
            (Logical 4 [])
        )
        Eq
        (LogicalConstant
            .true.
            (Logical 4 [])
        )
        (Logical 4 [])
        (LogicalConstant
            .false.
            (Logical 4 [])
        )
    )]
)