hi im new to dialogs and using DialogStudio

was just wondering exactly how i would make a button where

if ( ($group(#bla) = on) && (!$timer(bla)) { Button Text = Disable }

else { Button Text = Enable }