I’m extracting text from Invoice PDFs, saving it as a string.
I want to use a Switch (string) and the Contain command to find parts of the text.
This way in each case I want to invoke one of 6 different sequences, each configured for a specific type of invoice.
How should I do it?
Hi @Gabriel_Wisniewski ,
Check this thread :
Hi,
I have this excel as shown below and I need to add a new column called “PRODUCT in ICU” whereby everytime we have the data:
“…95% ORGANIC COTTON 5% ELASTHANE” in the column “Product Category” it prints:
"Women’s apparel / T-shirts, singlets - 5% Conventional Elastane (Spandex) + 95% Organic Cotton" in the column “PRODUCT in ICU”
when we have “…100% ORGANIC COTTON” in the column “Product Category” it prints:
" Women’s apparel / T-shirts, singlets - 100% Organic Cotton"
when we ha…
I had used Contains in Switch. It will get you started.
1 Like
Yoichi
(Yoichi)
April 29, 2021, 4:44am
3
Hi,
Hope the following helps you.
keywords.Where(Function(s) yourString.Contains(s)).SingleOrDefault
or
keywords.Where(Function(s) yourString.Contains(s)).FirstOrDefault
Note: the above expressions have different behavior if there are 2 or more matches.
Regards,
2 Likes
system
(system)
Closed
June 15, 2021, 5:05pm
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.