Hi Team,
Is there a way we can provide condition for Text Exist activity
Eg
“GL Account 2005 is relevant to Taxcode”
Or
“GL Account 1008 is relevant to Taxcode”
So it needs to check if any one of these are present
Thanks in advance!
Hi Team,
Is there a way we can provide condition for Text Exist activity
Eg
“GL Account 2005 is relevant to Taxcode”
Or
“GL Account 1008 is relevant to Taxcode”
So it needs to check if any one of these are present
Thanks in advance!
Hello @anmita try this:
Use text exist activity to indicate on screen and store it in a boolean variable
Simply use if condition like
“YourInputString”=bool
True:then perform actions
Hi @anmita
Method 1
// If extracted text is stored in a variable called "extractedText"
If
extractedText.Contains("GL Account 2005 is relevant to Taxcode") Or extractedText.Contains("GL Account 1008 is relevant to Taxcode") Then
// Perform the necessary actions here
Else
// Perform the necessary actions here
Method 2
// If extracted text is stored in a variable called "extractedText"
isTextPresent= extractedText.Contains("GL Account 2005 is relevant to Taxcode") Or extractedText.Contains("GL Account 1008 is relevant to Taxcode")
Data Type of isTextPresent= System.Boolean
//you can use isTextPresent to perform the necessary actions here
Method 3
Hope it helps!!
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.