You can use MergeBlock() to deleted a block :
if ($m3==0) {
$TBS->MergeBlock('b3','clear');
} else {
$TBS->MergeBlock('b3',$data);
} |
Otherwise, you can use a conditional block [onload] if you want it to be deleted before the merge, and [onshow] if it has to be deleted after the merge.
Example : <li>[menu_3.abc][onshow;block=li;when [var.m3]=1]</li>