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.