From Script to Tag
Username:  
Password:
  > Home
> User Guide
v Reference
    > Introduction
    > CROFT
    > BEE Variables
    v BEE Syntax
       o General Syntax
       o BEE Script Syntax
       o BEE Tag Syntax
       o From Script to Tag
    > BEE Commands
    > 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 Syntax >> From Script to Tag <=  =>      <  1  >  
Rules to present Script in Tag form

BEE Script is abstracted from BEE Tag.  All BEE Script statements are to be pre-processed into BEE Tags before being passed to the compiler.

The standard Script-to-tag translation is as following:

BEE Script:   tagname [name=value ...];

 

is translated to

 

BEE Tag:   <beetagname [name=value ...]>

 

Some BEE Script statements have special syntax to make it more "natural" to programmers of other common scripting languages.

For example, Conditional statements ("if" and "elseif") and loop statements ("foreach" and "while") must have a small brackets containing the condition at the end of the statement.  The block of statements that follow (for conditional execution or loop body) must be surrounded by a pair of curly brackets unless it is a single statement.  Please see individual command syntax for details.

For function declaration, the "function" statement is NOT followed by a semi-colon (';').  Instead, it must be followed by an open curly bracket that starts the function body which will be ended by a close curly bracket.  The pair of curly brackets cannot be omitted even when there is only one statement in the function body.

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