@shod90
Please follow the below flow for contains approach:
In the below flow, I have included variable called SearchText to mention your text or char to check in the extracted OCRTEXT and also i have added messagebox to display ocr text before goes into if condition so that it will give some idea on what is being extracted through OCR on each time extraction.

You can declare variable like searchtext and use that variable in if condition second operand like below.

Code:
SET SearchText TO $'''Power'''
OCR.ExtractTextWithOCR.ExtractTextFromScreenWithWindowsOcr WindowsOcrLanguage: OCR.WindowsOcrLanguage.English ImageWidthMultiplier: 1 ImageHeightMultiplier: 1 OcrText=> OcrText
Text.Trim Text: OcrText TrimOption: Text.TrimOption.Both TrimmedText=> TrimmedText
LOOP WHILE (True) = (True)
Display.ShowMessageDialog.ShowMessage Title: $'''Info''' Message: $'''Extracted Text: %OcrText%''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed
IF Contains(OcrText, SearchText, True) THEN
EXIT LOOP
END
OCR.ExtractTextWithOCR.ExtractTextFromScreenWithWindowsOcr WindowsOcrLanguage: OCR.WindowsOcrLanguage.English ImageWidthMultiplier: 1 ImageHeightMultiplier: 1 OcrText=> OcrText
Text.Trim Text: OcrText TrimOption: Text.TrimOption.Both TrimmedText=> TrimmedText
END
Thanks,
Deenuji Loganathan 👩💻
Automation Evangelist 🤖
Follow me on LinkedIn 👥
-------------------------------------------------------------------------------------------------------------
If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀