$(eval) To Divide User Input

I’m trying to make a command that uses $(eval) to divide the input from a user by a constant number, but cannot work out how to do it.

Example to divide by 2

$(eval parseFloat(decodeURIComponent(`$(querystring)`))/2||`Bad input!`)

Thanks for the help I appreciate the timeliness of it. (I honestly should’ve waited as one of the mods I work with created the command that I needed)

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