hide
Username:  
Password:
  > Home
> User Guide
v Reference
    > Introduction
    > CROFT
    > BEE Variables
    > BEE Syntax
    v BEE Commands
       > Variable Operations
       v Conditional
          o if
          o else
          o elseif
          o switch
          o case
          o hide
          o show
       > Loop
       > Module Calling
       > Remote Calling
       > Authentication
       > Data Access
       > Socket
       > Special Functions
    > Database Operation
    > Content Management
    > Objects and Classes
    > Interface with others
    o Glossary
> Portal Object
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Reference >> BEE Commands >> Conditional >> hide <=  =>      <  1  >  
hide – unconditional non-execution of a block

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.

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd