Chr(34) is not working as expected, has something changed in the recent updates?

When im using chr(34) on its own it works fine. when i introduce more strings to add it doesn’t.
image

image

Works fine for me

Are you using project windows or windows legacy?

@lr101

image
image

Hi @lr101

chr(34) prints the value "

chr(92) prints the value \

Try the below syntax:

(chr(92)+"string").Contains("\")

Hope it helps!!

Which dependences do we use?

Hey @lr101

Chr(34) = "

chr(34)+"string" = "string → Expected

chr(34)+"string" = ""\string" → Output

In Immediate Panel "string is showing as “”\string" but it is "string only!

Regards,
Ajay Mishra

@lr101

No need to update or downgrade the dependencies,

You can also see the below screenshot:

Regards,
Ajay Mishra

1 Like

@lr101

Happy Automation

@lr101 How you marked @pravallikapaluri post as solution?

@lr101 What’s the solution?

Regards,
Ajay Mishra