The line I am using is
write("Type: "..alias[list[num].label] or list[num].label)
where alias[list[num].label] may not exist, but if it doesn't I want to use list[num].label instead. Unfortunately, I keep getting an 'attempt to concatenate string and nil' error, where it seems it's ignoring my perfectly reasonable intentions and only going after the first part of the operator.Can someone help me figure out what I'm doing wrong?