Solved

Swap String variable


Badge +5

HI team,

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

Can anyone please help me.

thank you.

icon

Best answer by Sai1212 5 May 2023, 09:25

View original

3 replies

Userlevel 2
Badge +7

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

Badge +5

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.

Badge +1

Using Clipboard action we can achieve this.

Reply