ok i found the answer kinda ?
here but if someone could explain why it works it would help ?
thanks
this is what i ended up with
on *:dialog:happydialog:sclick:7: {
if ($did($did) == 0) { did -c happydialog 7 }
if ($did($did) == 1) { did -u happydialog 7 }
}