Get text activity 1

Hi all,

I need to get a value from an application so I have used get text activity and the output I have put a variable named output.

The output is a string variable.

Now I need to pass that output in if condition. How do I do that.
As if condition accepts only Boolean variable

Can anyone please help me

1 Like

@hanviprebday

in if activity you can pass the condition as

outputvariable.equals(β€œβ€)

or like way you can give condition

an If activity expects a boolean as an outcome or variable

lets assume we want to check if a string contains a particular substring

strStringVariable.Contains(β€œABC”)

will return a Boolean and will work within the condition

What you want to do / check within the if?

Hi @hanviprebday

You can try this

CBool(Input)

Hi @hanviprebday

Based on the required condition, you can use

For example

 output.Contains("specific_keyword")

It Checks whether the keyword is contains in the string or not

Hope it helps!!

Thank you it’s working

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