Getting an element from an array stored in an external js file
-
Does anybody know how to print an element stored in an external js file?
Obviously we need to pull the file into our HISE session using
include("Arrayfile.js");
but how would we then access elements from the file?Ultimately, I'm trying to print a random string element from an array stored in a js file to a text label in HISE.
Cheers
-
Show me the contents of the file.
-
Something like this @d-healey
arrayfile.jsHoping to print a element at random to a label
-
include("arrayfile.js"); Console.print(fruit.Data[Math.randInt(0, 3)]);