Divooka Reference

Procedural Programming

16 nodes

On this page 16

Sequence

Flow control

Runs each of its outputs in turn, top to bottom: one path that does several things in order.

Signature
Sequence
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Package
Foundation Primitives

For Each

Flow control

Runs its Next path once for each item of a collection, with the item as Current Item; Completed runs after the last.

Signature
For Each
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Package
Foundation Primitives

For

Flow control

Runs 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.

Signature
For
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Package
Foundation Primitives

While

Flow control

Runs its Next path again and again while its condition is true; Completed runs once it is false.

Signature
While
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Package
Foundation Primitives

Repeat

Flow control

Runs its Next path a given number of times, with the pass as Current Index; Completed runs after the last.

Signature
Repeat
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Package
Foundation Primitives

Branch

Flow control

Takes the True path when its condition holds and the False path when it does not.

Signature
Branch
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Package
Foundation Primitives

Switch

Flow control

Takes the arm whose case equals its value, trying the cases in order, or Default when none does.

Signature
Switch
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Package
Foundation Primitives

Break

Flow control

Leaves the innermost loop at once, as break does in C#.

Signature
Break
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Package
Foundation Primitives

Continue

Flow control

Ends the innermost loop's current pass and goes on to the next, as continue does in C#.

Signature
Continue
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Package
Foundation Primitives

Try

Flow control

Runs 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.

Signature
Try
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Package
Foundation Primitives

Custom Event

Event

Starts a path of its own when the event of its name is raised, by Execute Event or by the framework the graph runs on.

Signature
Custom Event
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Package
Foundation Primitives

Execute Event

Event

Raises a custom event by name, running the path that starts at its Custom Event.

Signature
Execute Event
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Package
Foundation Primitives

Self

Function

The instance this graph is running on, to pass to other nodes as an ordinary value.

Signature
Self
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events StateMachineState
Package
Foundation Primitives

Return

Flow control

Ends the routine here and gives back its outputs; a routine may have a Return on each of its paths.

Signature
Return
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Package
Foundation Primitives

Wait For

Function

Waits for a number of seconds, then goes on. Stop ends the wait at once.

Signature
WaitFor(seconds: Number)
void WaitFor(double seconds)

Parameters

nametypedefaultdescription
secondsNumber—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

Function

Waits until a time, then goes on; a time already past goes on at once. Stop ends the wait at once.

Signature
WaitUntil(time: Date & Time)
void WaitUntil(DateTime time)

Parameters

nametypedefaultdescription
timeDate & 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