Using if Statement Prints Condition value?
-
In my template I have an if statement like so:
if (block_field( 'add-row-2' ) == 'Yes') { ?> <tr class="sortabletr"><td class="model-image"> Test </td></tr> <?php }
What’s odd is it prints “Yes” on the page above the table this code sits in. Any ideas why? I have no code to echo or print it. If I remove the if statement then the “Yes” is removed.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Using if Statement Prints Condition value?’ is closed to new replies.