How to get specific part of an extracted activity?

Hii all,
I have extracted a text “12 of 16 selected” using get text activity, the numbers can be anything in the place of 12 and 16 , now i want to keep an if condition n check only for the 12(i want to extract only that part). And keep a condition if the number is less than 8 then it should move to Then sequence.

Hey Diya,

You can refer the below solution.


Hi sanjay
Can you tell me the variable types of those variables

Hey, well come to community…

Try like this:

strNumber = GetTextvariavle.Split(" "C)(0)
intNumber = Convert.ToInt32(strNumber)

In if condition mention like this


In then block do whatever you want which will give you the less than 8 data

In else block do whatever you want which will give you the more than 8 numbers


Hey @DIYA,

Please refer the solution.
Test.xaml (8.1 KB)


we can use Regex for the extraction

myInt = CInt(System.Text.RegularExpressions.Regex.Match(YourStringVar, "(\d+)(?= of)").Value.Trim)
1 Like

Thanks everyone for your help

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.