How to make an If Else on Excerpt Filter

Here is the solution that seemed to work. Thanks Tom

function new_excerpt_more($more) {
    global $post;
    $thePostID = $post->ID;
    if($thePostID == 1128) {
    return '...<a class="readmore" href="'. get_permalink($post->ID) .  '">Watch Video &raquo;</a>';
    } else {
    return '...<a class="readmore" href="'. get_permalink($post->ID) . '">Read more &raquo;</a>';
    }
}
add_filter('excerpt_more', 'new_excerpt_more');

error code: 523