Index  Up  <<  >>  


calc

CALL INFORMATION
No parameters.

Pass attribute hash as last to subroutine: no

Interpolates container text by default>.

This is a container tag, i.e. [calc] FOO [/calc]. Nesting: NO

Invalidates cache: no

Called Routine:

ASP/perl tag calls:

    $Tag->calc(
        {
        },
        BODY
    )
  
 OR
 
    $Tag->calc($BODY);

 

DESCRIPTION
syntax: [calc] EXPRESSION [/calc]

Starts a region where the arguments are calculated according to normal arithmetic symbols. For instance:

    [calc] 2 + 2 [/calc]

will display:

    4

The [calc] tag is really the same as the [perl] tag, except that it doesn't accept arguments, interpolates surrounded MiniVend tags by default, and is slightly more efficient to parse.

TIP: The [calc] tag will remember variable values inside one page, so you can do the equivalent of a memory store and memory recall for a loop.

ASP NOTE: There is never a reason to use this tag in a [perl] or ASP section.


Index  Up  <<  >>