Maybe
Name
Mandatory
Description
Default
Type
⬅️ Input
Must match the input types of the first shard in the sequence.
Any
Output ➡️
Will match the output types of the first shard of the sequence.
Any
Shards
No
The shards to activate.
none
Shard
[Shard]
None
Else
No
The shards to activate on failure.
none
Shard
[Shard]
None
Silent
No
If logging should be disabled while running the shards (this will also disable (Log) and (Msg) shards) and no warning message should be printed on failure.
false
Bool
Attempts to activate a shard or a sequence of shards. Upon failure, activate another shard or sequence of shards.
Examples
1
2
3
4
5
6
7
8
9
10
11
12 [1 2] | Maybe({
Take(3)
} {
Take(0)
} Silent: true) | Log("result")
[1 2] | Maybe({
Take(3)
} {
Msg("Invalid, default to 42" Level: LogLevel::Warning)
42
} Silent: true) | Log("result")
[info] [sample-wire] result: 1
[info] [sample-wire] result: 42