[SOLVED] How to add numbers higher than one to variables

At first I tried this but it didnt seem to work:
image

This does exactly what I need it to but in only increases by one:
image

Combining the two gives me a red error line:
image

Adding another plus sign removed the red line but still increased by one:
image

How do I add numbers higher than one?

Grams += 10;
Grams = Grams + 10;

Yes this worked.

1 Like