Skip to main content

HI team,

How can we swap tow strign variable with out third variable in automation anywhere?

Can anyone please help me.

thank you.

Hi @Jitendriya ,

 

Lets take an example of two Strings i.e

str1 = abc

str2 = def

Assume that above two variables you have created and initialized on the taskbot as above

Now, add below snippet, which should swap two string values.

 and here is the OP:

 


Hope it helps you out.

Sai Teja Gayala


Hi @Jitendriya ,

 

Lets take an example of two Strings i.e

str1 = abc

str2 = def

Assume that above two variables you have created and initialized on the taskbot as above

Now, add below snippet, which should swap two string values.

 and here is the OP:

 

Hope it helps you out.

Sai Teja Gayala

Thank you Sai, you did it very simple way thank you once again.


Using Clipboard action we can achieve this.


Reply