LIKE or CONTAIN operator in calculation field to find part of a string
AnsweredI wish to filter a field (containing bank account numbers) based on (for example) the last four characters in order to group a list of bank account statements by bank accounts (since I import statements from more than 1 bank account in the same app). What operator do I need to use? I only know the equal (==); but not the LIKE operator. Thank you.
-
With this you can get the last 4 characters of the string, than you can compare it in an IF-Condition:
var a = @fieldName var b = a.slice(-4) b == "4321" ? "than do this" : "or do that"
Rainer
rg@delos-consulting.com
Please sign in to leave a comment.
Comments
6 comments