You need to write GUN=SOMETHING every time you want to assign something to GUN, not just once. For example... GUN=10 GUN+20 GUN-5 ...the second and third lines won't change the value of GUN. They just serve as expressions. However... GUN=10 GUN=GUN+20 GUN=GUN-5 ...will change the value of GUN accordingly.