I'm having problem with some code I have here:
CODE
//REPLAY GAIN//
$puts(rpg,
$if(%__replaygain_track_gain%, TGain: $rgb(77,122,172)$cut(%__replaygain_track_gain%,5)' dB',$rgb(78,78,78) '['$button2(300,1,0,0,150,16,'$font(tahoma,8,underline,61-131-182)No TGain','$font(tahoma,8,underline italics,120-145-209)No TGain',Scan Per-file Track Gain,)']'))
$alignabs(400,1,95,16,,)
$get(rpg)
//REPLAY GAIN//
$puts(rpg,
$if(%__replaygain_track_gain%, TGain: $rgb(77,122,172)$cut(%__replaygain_track_gain%,5)' dB',$rgb(78,78,78) '['$button2(300,1,0,0,150,16,'$font(tahoma,8,underline,61-131-182)No TGain','$font(tahoma,8,underline italics,120-145-209)No TGain',Scan Per-file Track Gain,)']'))
$alignabs(400,1,95,16,,)
$get(rpg)
//REPLAY GAIN//
What it's supposed to do is display the replaygain info, which it does when the file HAS some. But if it DOESN'T have any, its supposed to display a [ bracket, then a button I click (text) that will scan the file, then a closing ] bracket.
I'm not sure what I screwed up here in the code