Class ExclusiveOr
Returns true if one input is true and the other is false.
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Logic", 2)]
[UnitDisplay(showTitle = false)]
public sealed class ExclusiveOr : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Properties
a
The first boolean.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true, showLabel = false)]
public ValueInput a { get; }
Property Value
Type | Description |
---|---|
ValueInput |
b
The second boolean.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true, showLabel = false)]
public ValueInput b { get; }
Property Value
Type | Description |
---|---|
ValueInput |
result
True if either A or B is true but not the other; false otherwise.
Declaration
[DoNotSerialize]
[UnitPortDisplay("A ⊕ B", primary = true, showLabel = false)]
public ValueOutput result { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()
Operation(Flow)
Declaration
public bool Operation(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
Boolean |