Hi there,
I’m trying to build a command that forwards two variables to an IFTTT webhook, the first being a single word and the second a line of text in varying length.
This is my command:
$(eval a=
$(urlfetch https://webhook?value1=$(1)&value2=$(querystring)))
My issue is that $(querystring) repeats the word picked up by $(1) because it pulls the full line of text and not just everything after the first word.
I need them separated because they are used in different places. When using arguments only, like value1=$(1)&value2=$(2) I can only input two words total. Using $(query) in place of $(querystring) has the same result.
So I’m looking for a way to separate the first word from the rest, or alternatively a way to make $(querystring) ignore or remove the first word entirely, before sending it to my webhook.
Thanks for your help! <3