Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get amount
#2
Macro Macro5
Code:
Copy      Help
CURRENCY a b c

a = "1,340"
b = "1,000"
c = "0"

if a > b
,c=a      ;; save a in c (c is not needed if you dont work with the 1000 in your following code)
,a.sub(b) ;; get difference from a to b
,c.sub(a) ;; substract difference from c (saved a)
,out c
else
,,goto ..


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)