String comparison 1 to 2


i have 2 variables .

1 variable is constant
2 variable is changing
i need to compare atleast first 5 digits are matching. if matched loop need to exit else i need to write in log message.


@anilkumar.vegi You can use Substring Operation for that comparison :

Var1.Substring(0,5) = Var2.Substring(0,5)

1 Like