If-Statement within Commands

Asked Jan 26, 2021·1 reply·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.

Hi is it possible to create a simple if statement within commands without using the custom api ?.
regarding this post (/t/help-with-conditional-statements/1534599789021364296) the first block of code worked for him. But if i try to use this i receive an "invalid or unexpected toke" error.
I want to check if the person you sends the commands is "username_x"

1 reply

This checks if the input equals WORD

$(eval decodeURIComponent(`$(querystring)`)==`WORD`:`success message`:`fail message`)