Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to to identify a character in a string
eg: SXOWERF, STOFGHJK
for the example strings, I am trying to identify if the 2nd character in them is/is not 'X' or 'T'.
Please help me with this
May be like this:
If(Match(Mid(FieldName, 2, 1), 'X', 'T'), 'Matched X or T', 'Did not Match X or T')
Here is a screenshot
You can replace True and False statements based on your requirement.
Best,
Sunny
I am trying to exclude all such strings with 2nd charater 'X','T' from the Field values. How to achieve this?
In the script, you can do this:
LOAD *
FROM ...
WHERE Match(Mid(FieldName, 2, 1), 'X', 'T') = 0;
You can use
if(Match(Mid(FieldName, 2, 1), 'X', 'T'),null(),FieldName)