I currently have this command:
$(eval
if(1==1){var code = “code1”;}else{var code = “code2”;}
var json = $(urlfetch json http://speedrun.com/api/v1/leaderboards/twwhd/category/ code variable here ?top=1&embed=players))
To get the current world record from a game.
Is it possible to put the “code” variable in the json url, if so how?
Thanks in advance!