6.0

Table Of Contents
6
PlanetPress Talk Basics
1
PlanetPress Talk Syntax
The rules, or syntax, of the PlanetPress Talk language describe how you combine its elements to create
scripts.
Command Syntax
A PlanetPress Talk command has the form:
command_name( arguments )
Arguments can be constants, variables, or functions (see “Use Functions as Arguments” on page 21).
A command can require no arguments, or one or more arguments. When a command requires more than
one argument, you separate arguments by commas. The following are all examples of valid PlanetPress
Talk commands:
fill()
moveto( 2.2, 4.5 )
mul(4.7,2.1)
rectangle(0,0,3,3,true,true)
curveto(1,1,1,3,0.5,2)
set(&current.line,&current.line + 1)
store(&current.line,trimleft(&str))
strtoint( @( 12,30,35) )
Spaces are not significant in PlanetPress Talk except between the name of a command and its opening
parenthesis. An error occurs if you leave a space between the name of a command and its opening
parenthesis.
show('this syntax is correct')
show ('this syntax produces an error')
Comments
PlanetPress Talk allows the use of comments within the code, but adding a comment at the end of a
PlanetPress Talk command is not permitted.
Case
PlanetPress Talk is case insensitive. Thus the following commands are all equivalent:
showright(@(1,34,64))
ShowRight(@(1,34,64))
SHOWRIGHT(@(1,34,64))
What are the rules for creating PlanetPress Talk scripts?