I have a table and I have a button, I would like to add the button to a table when it’s pressed.
local table = {} function btnPressed () // add the pressed button to the table table[#table+1] = ??? end local btn = widget.newButton({ onPress = btnPressed })