@TotallyInformation wrote:
Yes, this is very similar to what I've done for a long time and more recently started reworking to make it even more generic and reusable.
You might want to consider several variables though. So one to list devices and a separate one to list locations. You should probably write some standard functions then that let you do the kinds of lookups and validations you are likely to need along the way.
Image may be NSFW.
Clik here to view.I'll be simplifying those in a future itteration.