BEE Script: hide statement;
[else statement;]
or hide { statement; ... }
[else { statement; ... }]
BEE Tag: <beehide>
tag
...
[<beeelse>
tag
...]
</beehide>
The "hide" command specifies the following command or block of commands to be skipped in execution. It is equivalent to "if (false)". "hide" is useful in debugging or leaving inactive code in the script for future reactivation.
The script form of the "hide" command is rarely used because you can always inactivate a block of code by putting a pair of /* and */ around it. (Commented text are stripped before compilation but blocks hidden by "hide" are still compiled in under an "if (false)". In both cases, it will not show up to the client browser because BEE is a server side script. No execution means no display.)
In Tag form, "hide" is useful in hiding block of HTML code from the client browser. If you simply commented out the code with a pair of <!-- and -->, the inactive block will still show up in the client browser because HTML comments are stripped only at the client display, not even from the page source.
Note: "hide" starts an "if" block structure and therefore an "else" or an "elseif" tag can follow the conditional block.
|