I'm trying to create a command that communicates with the api ONLY IF the command has an argument
I tried:
$(evalif($(1)!=null){'$(urlfetch URL$(1))'} else {"Missing parameter."})
$(eval $(1)==null? '$(urlfetch URL$(1))' : "Missing parameter.";)
Both of them sends "null" with the custom url and displays "Missing Parameter" as a message when the user doesnt type anything besides the command(the URL has a propper text response), I've tested without the if/else and the message is displayed properly but I need to make sure that the "null" does not get sent with the URL