Passing variables into function used in request.dynamic ? #4026
Russsgithub
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @Russsgithub, Here's a variant using an anonymous function music = request.dynamic({get_next_track("music")})
extras = request.dynamic({get_next_track("extras")}) Also be aware that in some cases |
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
-
Does anyone know of a way of passing vars into the function used in request dynamic.
I have a few scripts that use pretty much the same function to call new tracks from an api call, where the only difference is the api end point.
It would be cleaner for me to able to use the same function and pass in variable to define the endpoint to be called . At pressent I can't see a way of doing this.
for example
This will fail as request.dynamic requires a function without the parentheses, and means i have to have two function , one for each request.dynamic operator.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions