Skip to Content
Block ManualChecks and Errors

Checks and Errors

Blocks in this category are used to help with checking the validity of your data and your design.

Stop with error

Loading...

The Stop with error block will immediately stop the generator and return an error. The error can be specified by plugging a string block into the input.

Aborting on undefined values

In conjunction with the Otherwise block, the Stop with error block can be used to abort the generator when a value is undefined. See the example below:

Loading...

Print

Loading...

The Print block will print the value of the text input to the console. Optionally, a string block can be plugged into the input to specify the text to print.

Otherwise

Loading...

The Otherwise block is used to handle possibly undefined values. When the value in the first input is undefined, the value in the second input is returned. The generated code can be compared to the following pseudocode:

def otherwise(a, b): if a is None: return b else: return a

Examples:

Loading...
Loading...
Last updated on