What is wrong with this? [closed]

The error is in the syntax; there’s a semicolon after the if condition. Try this:

<?php 
$page_comment = get_query_var('cpage');
if ($page_comment > 0): ?>
test
<?php endif; ?>

Alternative PHP syntax:

<?php 
$page_comment = get_query_var('cpage');
if ($page_comment > 0){ ?>
test
<?php } ?>

tech