I am using this code but getting PHP Syntax Check: Parse error: syntax error, unexpected 'if' (T_IF).
$string = "<span class=\"titlec\">" . $myname . if (strval(get_field('br_featured', $prev_id)) > 0) {echo "<span title=\"Listing\" class=\"mond\"></span>";} . "</span>"
Not sure what the solution would be here. Any help would be much appreciated.