NightDev Community Forums

Math with variables

Hello guys, I am new to this and so I need help.
Is there any way to use the same command but with different variables?
For example :
!commands add !example(x) $(x - 10)
Whereas x is the number viewers choose.
Thank you regardless.

Hiya, this sure is possible, check the docs to see the available variables to use:

For your example, you could use something like this:
!commands add !example $(eval '$(1)' - 10)

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