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.

 

Functions

log

Usage: log(message)

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

  • Credit cost: 0
  • Parameters:
    • messagestr unicode message string to be logged
  • Returns: None
  • Example:
    • Sample Code:
      if number > 3:
          log("Number is greater than 3")
      else:
          log("Number is less than or equal to 3")



escape

Usage: escape()

Stop processing the current module without producing outputs.

  • Credit cost: 0
  • Parameters: None
  • Returns: None
  • Example:
    • Sample Code:
      if variable is None:
          escape()



Sample Code


log("hello world")
escape()

IONode.set_output('out1', {'value':'execution never reaches here'})
Have more questions? Submit a request

0 Comments

Article is closed for comments.