The string that gets eval()ed has to be a proper statement that returns the value that gets if()ed, not just a random bit of syntax:
$condition = 'return 1 == 1;';
if (eval($condition)) {
echo '1 is equal to 1';
}
or
$condition = '1 == 1';
if (eval("return $condition;")) {
echo '1 is equal to 1';
}