Hello all, I am trying to use one button with two labels, so my code below shows how I am trying to do it but I know it is wrong because it is not working. So how to incorporate two labels on one button for two different functions. This code produces errors I have tried multiple versions of the below. Any Help is appreciated.
local startButton = widget.newButton
{
if countDownEngaged == false then
left = 20,
top = screenH / 2 ,
id = “startButton”,
label = “Start”,
onEvent = startClock
else
left = 20,
top = screenH / 2 ,
id = “startButton”,
label = “Stop”,
onEvent = startClock
end
}
Regards
JZ