command with 2 variables

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 :)”

Hiya, not exactly sure what you are looking for, but there is a $(count) variable: https://docs.nightbot.tv/variables/count

Example usage: Resetting counts via command

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

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.