If Statement condition c# is not working

This is syntax for VB language.
What is your project language - VB or C#?
You can check it at the bottom of UiPath studio window
image