Solved

Modulo Operation in A360

  • 8 December 2022
  • 3 replies
  • 201 views

Badge +1

Hello,

I am trying to migrate my bots from v11 to A360.

But the modulo operator (%) in number assign action does not work.

Am I missing something or is there another way to calculate modulo?

Thanks.

 

icon

Best answer by Padmakumar 8 December 2022, 11:42

View original

3 replies

Userlevel 7
Badge +11

HI @yaskar ,

 

If I am not mistaken, currently we don’t have any option to use Modulo operator in A360. But you can still get it worked by following either of the following method.

 

  • Try using the VB/Java/python Script to find Mod (Easy way)

or

  • Using the Loop-While action as shown below (A bit tricky)

 

or

Userlevel 2
Badge +6

@yaskar I’d convinced myself there was a math package out of the box from AA that allowed you to do this, but the best I could find was this on the store

https://botstore.automationanywhere.com/bot/calculator-package

For simplicity though, I would agree with @Padmakumar that you can achieve this quite simply with some python

Badge +1

Thank you both! @Padmakumar @Paul Hawkins 

Reply