Skip to main content

Is there a simple way to parse a number as a string and vice versa. It is cumbersome having to create a string variable and use the number->ToString action anytime that I create a number variable so that I can reference that variable as a string. Is there a way that I can parse the number as a string without creating a separate string variable.

Like how in java I could always say Integer.toString(myInt) instead of creating a string variable.

Thanks in advance

@Uzumaki 

Use $<YourStringVariable>.String:toNumber$ to convert the value of a string variable to a number variable.

Notice decimals will be removed.

https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/aae-client/bot-creator/using-variables/type-casting.html

 

HTH

Regards


Awesome, thank you


Reply