Constructing Condition Expressions

Use Condition Expressions in the Conditional plugin.

Conditions are specified as a boolean expression. A Boolean expression is a logical statement that is either TRUE or FALSE. Expressions can compare data of any type as long as both parts of the expression have the same basic data type or compatible data type. You can test data to see if it is equal to, greater than, or less than other data. Following are some of the example of an expression that can be specified.

  • Checks if the runtime argument filepath contains input.

runtime['filepath'] =~ ".*input_.*"
  • Checks two runtime arguments a and b.

runtime['a'] > runtime['b']
  • Checks output record count of File plugin from token with runtime value count.

token['File']['output'] > runtime['count']
  • Checks error record count of Data Quality plugin from token with runtime value max_error

  • Checks if a runtime argument value is provided and it's not null and plugin File error count is less than 1.

  • Takes the max of plugin File1 output count and File output count and checks if it's greater than runtime argument that is specified as a macro.

 

Created in 2020 by Google Inc.