@Sivapriya - Hope you are doing well.
We can achieve those two different ways. Please refer the below reference and code:

Method1 If condition:

Method2 If condition:

Code:
SET CompanyData TO $'''AMA'''
# #Method1
IF Contains(CompanyData, $'''AMA''', False) THEN
Display.ShowMessageDialog.ShowMessage Title: $'''tes''' Message: $'''true''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed
END
# #Method2
IF (Contains(CompanyData, $'''AMA''', False)) = $'''TRUE''' THEN
Display.ShowMessageDialog.ShowMessage Title: $'''tes''' Message: $'''true''' Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed
END
Thanks,
Deenu
------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up. Thank you.