NightDev Community Forums

Different Variables in one command

#1

I would like to use a $(user and a $(query) inside a eval command so would i go like $(eval a=$(user)||b=$(query); ____)
Edit: I have made some progress
$(eval a=decodeURIComponent($(querystring)).toLowerCase()b=$(user);a?(a==nightbot?YOU CAN'T BAN ME! YOU ARE NOW BANNED $(user):(a==kevsuniverse||a==hiyazcool?You can't ban ${a}, they are too powerful!:(b==harrybutss?You are now banned $(user):The user ${a} is now banned.))):Enter a user to ban!; )
This only results in a Instance of error
Extra edit my `s are now gone because its in italics

#2

@Hiyazcool

$(eval a=decodeURIComponent( `$(querystring)`).toLowerCase();b=`$(user)`;a?(a==`nightbot`?`YOU CAN'T BAN ME! YOU ARE NOW BANNED ${b}`:(a==`kevsuniverse`|a==`hiyazcool`?`You can't ban ${a}, they are too powerful!`:(b==`harrybutss`?`You are now banned ${b}`:`The user ${a} is now banned.`))):`Enter a user to ban!`)
#3

Thank you so much! @RokettoJanpu