Class ExclusiveOr
Returns true if one input is true and the other is false.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Logic")]
[UnitOrder(2)]
public sealed class ExclusiveOr : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Properties
a
The first boolean.
Declaration
[DoNotSerialize]
public ValueInput a { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
b
The second boolean.
Declaration
[DoNotSerialize]
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]
[PortLabel("A ⊕ B")]
public ValueOutput result { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Operation(Flow)
Declaration
public bool Operation(Flow flow)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow |
Returns
| Type | Description |
|---|---|
| Boolean |