Procedural Programming
16 nodes
On this page 16
Sequence
Flow controlRuns each of its outputs in turn, top to bottom: one path that does several things in order.
Sequence
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Package
- Foundation Primitives
For Each
Flow controlRuns its Next path once for each item of a collection, with the item as Current Item; Completed runs after the last.
For Each
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Package
- Foundation Primitives
For
Flow controlRuns its Next path once for each number from Start to End, counting by Step, with the number as Current Value; Completed runs after the last.
For
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Package
- Foundation Primitives
While
Flow controlRuns its Next path again and again while its condition is true; Completed runs once it is false.
While
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Package
- Foundation Primitives
Repeat
Flow controlRuns its Next path a given number of times, with the pass as Current Index; Completed runs after the last.
Repeat
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Package
- Foundation Primitives
Branch
Flow controlTakes the True path when its condition holds and the False path when it does not.
Branch
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Package
- Foundation Primitives
Switch
Flow controlTakes the arm whose case equals its value, trying the cases in order, or Default when none does.
Switch
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Package
- Foundation Primitives
Break
Flow controlLeaves the innermost loop at once, as break does in C#.
Break
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Package
- Foundation Primitives
Continue
Flow controlEnds the innermost loop's current pass and goes on to the next, as continue does in C#.
Continue
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Package
- Foundation Primitives
Try
Flow controlRuns its Try path, and when a step in it fails, the first Catch whose kind of failure it is; Finally runs after either, whatever happened; Completed goes on after.
Try
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Package
- Foundation Primitives
Custom Event
EventStarts a path of its own when the event of its name is raised, by Execute Event or by the framework the graph runs on.
Custom Event
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events StateMachineState
- Package
- Foundation Primitives
Execute Event
EventRaises a custom event by name, running the path that starts at its Custom Event.
Execute Event
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events StateMachineState
- Package
- Foundation Primitives
Self
FunctionThe instance this graph is running on, to pass to other nodes as an ordinary value.
Self
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events StateMachineState
- Package
- Foundation Primitives
Return
Flow controlEnds the routine here and gives back its outputs; a routine may have a Return on each of its paths.
Return
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Package
- Foundation Primitives
Wait For
FunctionWaits for a number of seconds, then goes on. Stop ends the wait at once.
WaitFor(seconds: Number)
void WaitFor(double seconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| seconds | Number | — | How long to wait, in seconds; zero or less goes on at once. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Wait Routines
- Package
- Standard Library
Wait Until
FunctionWaits until a time, then goes on; a time already past goes on at once. Stop ends the wait at once.
WaitUntil(time: Date & Time)
void WaitUntil(DateTime time)
Parameters
| name | type | default | description |
|---|---|---|---|
| time | Date & Time | — | When to go on. A time that says neither local nor universal is read as this computer's local time, as a time a person types is. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Events Routine StateMachineState
- Declared by
- Wait Routines
- Package
- Standard Library