7.5

Table Of Contents
Example
show(if(&pagenumber=1,'Customer Copy','Store Copy'))
Procedures
% (procedure)
Comments out the line. This is useful for embedding documentation in your code, making it easier to read and maintain. It is
also useful during debugging, for commenting out lines of code you do not want to execute.
Comments must not appear in the first line of the script you enter in the PlanetPress Talk Editor.
Syntax
% comment ….
Argument
None
Code Sample Example
This example illustrates comments in PlanetPress Talk code.
define(&x,integer,1)
% Creates a new local variable named x that is an
% integer and has a value of 1. The variable is used
% in a loop
for(&x,1,1,10)
show(inttostr(&x))
endfor()
@name (function/procedure)
Executes a global function or procedure created using the function() command.
The@ character can be the beginning of a data selection, a page call or a procedure or function call.
Syntax
@functionname( parameters ) integer, measure, currency, string, Boolean or no return value
Arguments
functionname
String value specifying the name of the function or procedure.
©2010 Objectif Lune Inc - 405 -