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
runtimeargumentfilepathcontainsinput.
runtime['filepath'] =~ ".*input_.*"Checks two
runtimeargumentsaandb.
runtime['a'] > runtime['b']Checks
outputrecord count ofFileplugin fromtokenwithruntimevaluecount.
token['File']['output'] > runtime['count']Checks
errorrecord count ofData Quality pluginfromtokenwithruntimevaluemax_error
token['Data Quality']['error'] <= runtime['max_error']
(token['File']['output'] > runtime['count']) and (runtime['a'] > runtime['b'])
(token['File']['output'] > runtime['count']) || (runtime['a'] > runtime['b'])
token['File']['output'] < runtime['count'] && token['File']['error'] < 1Checks if a
runtimeargumentvalueis provided and it's notnulland pluginFileerrorcount is less than 1.
!isnull(runtime['value']) && token['File']['error'] < 1Takes the
maxof pluginFile1outputcount andFileoutputcount and checks if it's greater thanruntimeargument that is specified as a macro.
math:max(toDouble(token['File1']['output']), toDouble(token['File2']['output'])) > runtime[$variable]
Created in 2020 by Google Inc.