Hi guys i needs some help when button turn to gold and press same button it will turn back to white background

Use if else block

if ( button.BackgroundColor() == COLOR.WHITE ){
  set button.BackgroundColor( COLOR.GOLD ) ;
} else {
  set button.BackgroundColor( COLOR.WHITE ) ;
}