BoolArithmetic¶
-
MLModule¶ author MeVis Medical Solutions AGpackage MeVisLab/Standarddll MLBasicModulesdefinition mlBasicModules.def keywords bit,operation,negation,boolean
Purpose¶
The module BoolArithmetic computes simple boolean operations.
Usage¶
Select the desired operation and mark the boolean input fields.
Details¶
Depending on the given input values, corresponding boolean output values are being computed.
The following table gives an overview over the given boolean operations:
| Operation | Input Bool A | Input Bool B | Output Bool C |
|---|---|---|---|
| Identity | A | – | A |
| Negation | A | – | -A |
| And | A | B | A and B |
| Or | A | B | A or B |
| Xor | A | B | A xor B |
| Equal | A | B | A == B |
| Implication | A | B | A –> B |
Parameter Fields¶
Field Index¶
Bool !C: Bool |
Bool A: Bool |
Bool B: Bool |
Bool C: Bool |
Changed to false: []: Trigger |
Changed to true: []: Trigger |
Int. Value: Integer |
Operation: Enum |
Visible Fields¶
Bool !C¶
-
name:negatedOutputBool, type:Bool, persistent:no¶ Shows the inverse of the result of the boolean operation.
Int. Value¶
-
name:outputInt, type:Integer, persistent:no¶ Shows the result of the boolean operation as an integer.
0 means false and 1 means true.
Operation¶
-
name:operation, type:Enum, default:Identity¶ Defines the boolean operation applied to
Bool A(and optionallyBool B).
Values:
| Title | Name |
|---|---|
| Identity | Identity |
| Negation | Negation |
| And | And |
| Or | Or |
| Xor | Xor |
| Equal | Equal |
| Implication | Implication |