How can I define this variable before arrays?
snippet in lua

How can I define this variable before arrays?

user7620

var = "array1"

array1 = {blah-blah1}
array2 = {blah-blah2}
array2 = {blah-blah3}

-- this is where the var will be replaced with actual value
var = _G[var]