Board Thread:General Coding Help/@comment-9605025-20180428232938/@comment-9605025-20180505170244

Thanks to both of you for clarifying the situation with the fallback values.

So, I took a look at KockaAdmiralac's examples as well as some additional sites on the web. Let's see if I understand correctly. JS makes loading data from outside the current script asynchronous so that other things can get done. But, as with anything asynchronous, this means you cannot guarantee the order of events. This means you can have "unexpected" undefined values as KockaAdmiralac mentioned.

How this applies to my script is that I want to retrieve the text for the edit buttons. In order to do that, I need to load the API module (or whatever it is called in JS). Thus, there are 3 portions of my code that normally would run asynchronously: loading the interface, using the interface to load the text values, and the rest of my script.

Am I missing anything?