Using variable in process.run #3124
gavin2812
started this conversation in
User Support
Replies: 1 comment 1 reply
-
You were close! I think what you want is:
BTW with
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I've put lufs into a variable using this:
If I
print(value)
it shows me the correct valueI then want to do something like this:
ignore(process.run("curl https://url?level={value}"))
But all I get at the endpoint is the word 'value' not the actual value of the variable. I've also tried
{!value}
and#{value}
No errors are shown when running the script.
How can I use that variable in the URL?
Thanks in advance.
As an update, if I use this syntax I also get no errors, but the endpoint is not hit at all:
ignore(process.run("curl https://url?level=#{value}"))
Beta Was this translation helpful? Give feedback.
All reactions