If the_content’s string length is greater than 0, show post otherwise dont

get_ is your friend. the_content() already outputs the content, whereas get_the_content() returns it (so you can check for length and decide whether to output or not).

$content = get_the_content();
if (strlen($content) > 0) {
    //..
} else {
    //..
}

tech