Following up on my earlier post about the role of the NRSC and NRCC, here is their candidate support function as explained through code.

function give_candidate_support($seat,$incumbent,$candidate) {
var $seat
var $incumbent
var $candidate

if ($seat = ‘open’) && ($candidate = ‘viable conservative’) {
     show_support;
}
elseif ($seat = ‘open’) && ($candidate = ‘viable Republican’) {
     show_support;
}
elseif ($seat != ‘open’) && ($incumbent = ‘Democrat’ {
     if  ($candidate = ‘viable conservative’) {
     show_support;
     }
     elseif ($seat = ‘open’ && $candidate = ‘viable Republican’) {
     show_support;
     }
     elseif ($seat = ‘open’ && $candidate = ‘less than viable conservative’) {
     show_tepid_support;
     }
    else ($seat = ‘open’ && $candidate = ‘less than viable Republican’ {
    show_tepid_support;
}
else ($seat != ‘open’) && ($incumbent = ‘Republican’ }
show_support;
}
}