Eval variable responses

Asked Dec 31, 2023·3 replies·Last activity 2 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.

Hi I try this commands for a chat
$(eval N=Math.floor((Math.random() * 10) + 1); "${N} mesage")
But it does not show the number N, it only shows ${N} mesage
Help

The purpose is to have a different message for some numbers, now this is a test

I try with ", ', ´ with no result

3 replies

hey don_kastor,
try N+" message" instead of ${N}

like this:
$(eval N=Math.floor((Math.random() * 10) + 1); N+" mesage")

Hey @Zesty Pufferfish!

Zesty Pufferfish said:
I try with ", ', ´ with no result

None of the characters you've used could have worked, try with backticks `` ``, instead of quotes "`, don't change anything else.