Compare two string

Hello,

I am comparing two string.

firstString=xyz

if(firstString.equals(“xyz”))
Logically It’s go to then condition.

But BOT go to else condition.

What is solution.

@minal.patil

This is case sensitive …please chekc the firststring value properly…

Try like this firststring.ToLower.Trim.Equals("xyz")

Cheers

For this string

firstString=ABCDxyz

if(firstString.equals(“ABCDxyz”))

@minal.patil

Can you please pause the bot and check in immediate pane to confirm

Or if you can share the caml it wpuld really help

Cheers

Hello @minal.patil

Please check the below. Maker sure in the string variable no extra space is there.

Thanks

It’s working thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.