Hide Multi-Line Field based on value in Yes/No Field

Hello,

I am trying to hide a multi-line text field if a yes/no = false. I have added the below code into JavaScript in the forms designer. What am I doing wrong?

fd.spRendered(function() {
function hideOrShowRegDeal() {
if (fd.field(‘Deal_x0020_Registration_x0020_Re’).value = false) {
{
$(fd.field(‘How_x0020_to_x0020_Register_x002’).$parent.$el).hide();
}
}
fd.field(‘Deal_x0020_Registration_x0020_Re’).$on(‘change’,hideOrShowRegDeal();
hideOrShowRegDeal();
});

I did figure this out, had to add the Else statement since I had it as an if

fd.spRendered(function() {

function hideOrShowDealReg() {
    if (fd.field('Deal_x0020_Registration_x0020_Re').value === true) {
        $(fd.field('How_x0020_to_x0020_Register_x002').$parent.$el).show();
    } else {
        $(fd.field('How_x0020_to_x0020_Register_x002').$parent.$el).hide();
    }
}
fd.field('Deal_x0020_Registration_x0020_Re').$on('change',hideOrShowDealReg);
hideOrShowDealReg();

});