Part of string in an array

Hello friends,
@rkelchuri, @Ninett_Panfir, @Rammohan91, @balupad14, @Florent_Salendres, @vvaidya, @Palaniyappan, @ClaytonM, @vvaidya, @lakshman, @Dave

how to check if a part of string (the code in bold)
File Originale
IT02355260981_3BwqC.xml.p7m
is contained in an array
{“IT05779711000”, “IT00042330142”, “IT12883450152”, “IT04152790962”,“IT00488410010”}?
Thank you,
CAmi

1 Like

Fine
If
In_str = “IT02355260981 _3BwqC.xml.p7m”
in_array = {“IT05779711000”, “IT00042330142”, “IT12883450152”, “IT04152790962”,“IT00488410010”}
The expression in if condition is like

in_array.Contains(Split(In_str,”_”)(0).ToString.Trim)

If true it will go to THEN part or will go to ELSE part

Cheers @CamiCat

2 Likes

Hello @Palaniyappan,

I’ve tried but doesn’t work for another case
Can you please share the xaml?
Thank you,
Cami

1 Like

What was the error you were getting
@CamiCat