IF/ELSE statement not working properly

Sure thing!

This solution comes from @RokettoJanpu! I had the same issue once and he helped me.

So let’s say you want to add a quote only if $(1)!=null:

You’d have your main command like this:

$(eval 
if(`$(1)`!=`null`){
    r=`PRIVATE_TOKEN&data=$(querystring)`;} //if true, send the token as well as the quote text
else{
    r=`Quote missing.`;} //if false, send error message
r) //r is what you send to the alias command

Then you’d have you alias command like that:

$(eval 
a=`$(urlfetch https://twitch.center/customapi/addquote?token=$(query))`; //can only add quote if token, so it won't do anything if error message
b=decodeURIComponent(`$(querystring)`);
b.includes(`PRIVATE_TOKEN`)?`${a}`:`${b}`) //if includes token, display "quote added", else display error message