Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | SamuelMb |
var arr = ["Mixed", "Meat", "Vegetable", "Synthetic", "Mineral"]
export (String, arr) var diet = "Vegetable"
export (String, arr) var product = "Meat"
Bellow you see the right way to do it. Above you see the way I want to do it. Is this possible to do? Can I store the array in a variable and then drop the array into the export code?
export (String, "Mixed", "Meat", "Vegetable", "Synthetic", "Mineral") var product = "Meat"
export (String, "Mixed", "Meat", "Vegetable", "Synthetic", "Mineral") var diet = "Meat"