Hi handoko,
If think the "if [val]=1" does nothing because you have not any "then" or "else.
You can code:
[var.visiblenv;if [val]=1;then ' ';else '';magnet=table;mtype=m*m;noerr]
|
But in fact the best way is to use an automatic block:
[onshow;block=table;when [var.visiblenv;noerr]=1]
|
And you can put this TBS tag anywhere inside the <table></table>, even in the text of a cell.