Iam getting value from pdf

iam getting value from pdf but what if there in no value iam looking for how can i handle this kind of scenario

can i use if condtion
or try catch

@T_Y_Raju

How are you getting the value?

You can check if the extracted part is empty then value is not present

And yes you can use if condition etc based on ehat you are doing

Cheers

iam using match activity

@T_Y_Raju

Matches activity output is an enumerable

You can check output.count>0

Cheers

do we have loop it as this is enumerable

@T_Y_Raju

To check count should be enough…if exists you might need loop to get eqch match

Cheers

Hi @T_Y_Raju

If you have the Keyword or regular expression (regex) for it. Then you can use the IsMatch Function. It will check the value is exist in the pdf text or not.

You can use the below expression in If condition, Input is the String datatype variable which consists of pdf data,

System.Text.RegularExpression.Regex.IsMatch(Input.toString, "Give the Regex here")

The above expression can be used in If condition.

Hope it helps!!