Class SelectUnit
Selects a value from a set by checking if a condition is true or false.
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Flow", "Selection", 10)]
[UnitDisplay("Select")]
[TypeIcon(typeof(ISelectUnit))]
public sealed class SelectUnit : Unit, ISerializationCallbackReceiver, ISelectUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged
Properties
condition
The condition to check.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true, showLabel = false)]
public ValueInput condition { get; }
Property Value
Type | Description |
---|---|
ValueInput |
ifFalse
The value to return if the condition is false.
Declaration
[DoNotSerialize]
[UnitPortDisplay("False")]
public ValueInput ifFalse { get; }
Property Value
Type | Description |
---|---|
ValueInput |
ifTrue
The value to return if the condition is true.
Declaration
[DoNotSerialize]
[UnitPortDisplay("True")]
public ValueInput ifTrue { get; }
Property Value
Type | Description |
---|---|
ValueInput |
selection
The returned value.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true, showLabel = false)]
public ValueOutput selection { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Implements
Methods
Branch(Flow)
Declaration
public object Branch(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
Object |
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()