Built-ins

These built-in helper functions are provided for convenience.

 

Import

There is no import line needed to use this library and its functions.

 

Log messages in Debugger

log(message)

Logs messages in Debug logging tool. To find out more about using the Debug tool, view the Workflow Studio Documentation. Note: there is a 100 print line limit.

Warning: Do not create a function called "log", otherwise it will override this function for your entire Medium One project.

Credit cost: 0

Parameters

  • messagestr unicode message string to be logged

Return Value

None

Example

  • Sample Code:
    if number > 3:
        log("Number is greater than 3")
    else:
        log("Number is less than or equal to 3")

Exceptions

None


Exit workflow

escape()

Stop processing the current module without producing outputs.

Credit cost: 0

Parameters

None

Return Value

None

Example

  • Sample Code:
    if variable is None:
        escape()

Exceptions

None