Posts: 35

Threads: 13

Joined: Feb 2011

i was wondering how i could getwintext from a text and if greater than a certain value subtract the greater amount until it equals the correct value for example

`it = 1340`

if >1000

subtract the amount it is greater than so it would = 1000

if!>1000 goto(next)

something like that is what im looking for

Posts: 153

Threads: 33

Joined: Aug 2009

Macro

Macro5

`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 ..