mn8 Language Reference | Index    

Logical

SUMMARY: NO ATTRIBUTES  NO ELEMENTS  NO CONSTRUCTORS  OPERATORS SUMMARY  METHODS SUMMARYDETAIL: NO ATTRIBUTES  NO ELEMENTS  NO CONSTRUCTORS  OPERATOR DETAILS  METHOD DETAILS

Description

The lexical constants true and false evaluate to a value of type Logical. Expressions containing operators that compare values (for example equal or less than) also evaluate to a logical. Logical expressions can be combined with logical "and" and logical "or" operators, and are evaluated in a short-circuited fashion.

Usage

        Boolean Expressions
            Expression       Value     Value Type
            --------------   -----     ----------
              true             true      Logical
              false            false     Logical
              true or false    true      Logical
              true and false   false     Logical
              1 = 1            true      Logical
              1 <= 1           true      Logical
              1 != 1           false     Logical

Version: 0.1
Authors:Remus Pereni (http://neuro.nolimits.ro)
Location:
Inherits: Concept

Operator List

Logicalor (Logical $logical)
Logicaland (Logical $logical)
Logicalnot
Logical== (Logical )
top
Methods inherited from: Concept
cloneConcept, extendsConcept, fromXML, getAllInheritedConcepts, getConceptAttribute, getConceptAttributeField, getConceptAttributeFields, getConceptAttributes, getConceptConstructors, getConceptElement, getConceptElementField, getConceptElementFields, getConceptElements, getConceptLabel, getConceptMethod, getConceptMethods, getConceptOperators, getConceptType, getErrorHandler, getInheritedConcepts, getResourceURI, hasConceptAttribute, hasConceptElement, hasConceptMethod, hasPath, isHidden, loadContent, setConceptLabel, setErrorHandler, setHidden, setShowEmpty, showEmpty, toTXT, toXML, setResourceURI

Detailed Operator Info

or (Logical $logical)
Parameters:
$logical :Logical with which will be make the or operation

Executes the or operation with the logical given as parameter and this concept value and returns the result.

top
and (Logical $logical)
Parameters:
$logical :Logical with which will be make the and operation

Executes the and operation with the logical given as parameter and this concept value and returns the result.

top
not

Returns the negated value of this concept.

top
== (Logical )
Parameters:
:To this logical will be compared this concept value.

Returns true if this concept value equals with the parameters value, false otherwise.

top

Detailed Method Info