Changeset 3439
- Timestamp:
- 04/20/10 15:13:38 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators/3.3/ConditionalBranch.cs
r3376 r3439 30 30 /// A branch of two operators whose executions depend on a condition. 31 31 /// </summary> 32 [Item("ConditionalBranch", "A branch of two operators whose executions depend on a boolean condition. ")]32 [Item("ConditionalBranch", "A branch of two operators whose executions depend on a boolean condition. If the boolean condition is not present, the false branch is executed.")] 33 33 [StorableClass] 34 34 public class ConditionalBranch : SingleSuccessorOperator { … … 60 60 public override IOperation Apply() { 61 61 OperationCollection next = new OperationCollection(base.Apply()); 62 if (ConditionParameter.ActualValue .Value) {62 if (ConditionParameter.ActualValue != null && ConditionParameter.ActualValue.Value) { 63 63 if (TrueBranch != null) next.Insert(0, ExecutionContext.CreateOperation(TrueBranch)); 64 64 } else {
Note: See TracChangeset
for help on using the changeset viewer.