Skip to main content
Answer

Automation Anywhere "Formula" Shortcuts

  • December 22, 2022
  • 3 replies
  • 199 views

Forum|alt.badge.img+4

Hey-

 

I’ve noticed that I can convert a string to a number or vice versa using syntax like this:

 

$YourStringVariable.String:toNumber$

 

I find this useful because it saves the conversion step in the interface.  I was interested to know if anyone else has suggestions for more of this type of stuff where I can use shorthand or “formula-ish” language in place of the interface?

 

For example…..stuff like this:

 

Can I split a string and get the position of X element in one “formula”?

 

Can I string out specific text based on start and end in one “formula”…. rather than the clunky interface?

 

Basically common shortcuts to cut out additional steps…..

Best answer by Padmakumar

Hi @Matt 7768 ,

 

Please access below link to get further details on this.

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

 

3 replies

Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • Answer
  • December 22, 2022

Forum|alt.badge.img+22
  • Most Valuable Pathfinder
  • December 22, 2022

Hi @Matt 7768 

The simplest approach to check this is to place a . in front of the $ symbol at the end of any variable you have.. or checkout documentation shared by @Padmakumar 


Forum|alt.badge.img+4
  • Author
  • Navigator | Tier 3
  • December 23, 2022

Thanks so much for the assistance.