I want to compare two variables(of type string), but it is not comparing it. Request to please help me in it.
Var1=“test” , Var2=“test”
I have tried the below
- Var1.Tostring=Var2.ToString --> it is not comparing the strings
- Var1.Tostring equals (Var2.ToString) --> it says end of expection required , so tried Var1.Tostring equals (“Var2.ToString”) --> cannot convert string to boolen.
Thanks in Advance.