Operands keep interchanging

Good Day
I’m practicing on applications and selectors but I’m having issues.
I created three input dialog to collect 2 integers and one operation for a calculator automation, which I did perfectly.
But the problem is that when I run the file and I provide the input 5,4,, instead of doing 54 it keeps doing 5/4 and if I should input 5,4,-, it does 54.
It keeps swapping operands when I provide these operands (
,-,/), but it works well when I input +.
And I don’t know what I’m doing wrong.
I will be very happy if any solution is provided.
Thanks

Good Day
I’m practicing on applications and selectors but I’m having issues.
I created three input dialog to collect 2 integers and one operation for a calculator automation, which I did perfectly.
But the problem is that when I run the file and I provide the input 5,4,x, instead of doing 5x4 it keeps doing 5/4 and if I should input 5,4,-, it does 5x4.
It keeps swapping operands when I provide these operands (x,-,/), but it works well when I input +.
And I don’t know what I’m doing wrong.
I will be very happy if any solution is provided.
Thanks
NOTE: I had to substitute the normal multiplication sign with x while making this post, because it keeps disappearing after I post it

Hi @Drizzy ,
We have 3 input dialogs
that’s right
1st to input X, output is strX
2nd to input Y, output is strY
3rd to input calculate, output is strC

→ we have result = strX + strC+ strY
with “Switch case” or “If”, “If else”
we have result
you can check
1712.zip (2.9 KB)
Hope it help

1 Like

Thanks alot, i found my my way around it.

Cheer @Drizzy
happy automation

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.