How to Use Dictionaries?
-
What would be the equivalent for something like this in HISE's JavaScript implementation? (Or just use JSON?)
var Zoo = {
"Ferret": 1,
"Wombat": 24,
"Penguin": 25
}; -
@clevername27 erm, that's valid JSON...
-
@Christoph-Hart So it is, lol. I can't seem to make that syntax work in HISE Script?
EDIT: Seems to be an issue with an error elsewhere in my code. NM and thanks.
-
@clevername27 you can even omit the quotes and write the keys directly:
var Zoo = { Ferret: 1, Wombat: 24, Penguin: 25 };
-
@Christoph-Hart Cheers - did not know that, thank you again.
-