1.1.3.1 string is empty
Row expression | #{stringColumn} == '' |
1.1.3.2 string is not null
Row expression | #{stringColumn} != null |
1.1.3.3 string length
Row expression | if ( #{stringColumn} != null )
#{stringColumn}.length
else
-1 |
1.1.3.4 contain sub-string
Row expression | if ( #{stringColumn} != null )
#{stringColumn}.search(/hello/ig)
else
-1 |
1.1.3.5 Position of sub-string
Row expression | if ( #{stringColumn} != null )
#{stringColumn}.indexOf('hello')
else
-1 |
1.1.3.6 compare strings
Row expression | #{stringColumn} === 'hello' |
1.1.3.7 replace first
Row expression | if ( #{stringColumn} != null )
#{stringColumn}.replace("hello", "Hello");
else
null |
1.1.3.8 replace all
Row expression | if ( #{stringColumn} != null )
#{stringColumn}.replace(/hello/g, "Hello");
else
null |
1.1.3.9 starts with
Row expression | if ( #{stringColumn} != null )
#{stringColumn}.startsWith('Hello')
else
undefined |
1.1.3.10 ends with
Row expression | if ( #{stringColumn} != null )
#{stringColumn}.endsWith('hello')
else
undefined |
1.1.3.11 Special values
Row expression | var array = [ 'A', 'B', 'C', 'D' ];
array.includes('#{stringColumn}') |