command with 2 variables

Asked Jan 8, 2021·3 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Is there any way to create a command in which you can subtract or add, for example if I mean:
I have 2 chewing gum, when I have one more to add one and when I have one less to subtract "It's a weird example :)"

3 replies

no it is not the count as the count only adds up, I would like a command that not only adds up but can also subtract, thank you

Check out this post (link expired) to set up such a counter. It lets you add any values to a running total, eg integers and decimals, so in particular you can add negative integers to decrease the total.