If-Statement within Commands

Hi is it possible to create a simple if statement within commands without using the custom api ?.
regarding this post (Help with Conditional Statements) 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”

This checks if the input equals WORD

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

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