PCC includes a scripting language. The script interpreter understands a simple programming language remotely based upon newer BASIC dialects, and extended to be useful in a VGAP context.

The scripting language is used for...

  • Connecting keys and actions ("keybindings"). You can change these bindings using the Bind command.
  • Searching objects using the search function, and labeling objects in the starchart.
  • auto tasks.

The scripting language started out as a search/query language, and evolved into a simple interpreted language in PCC 1.x. In PCC2, the underlying technology changes a lot, but the language remains largely the same. However, some dirty corners have been cleaned up, making the language a little more logical and consistent.

This manual documents the PCC2 version of the language. However, I attempted to document where PCC2 and PCC 1.x differ; a version index is available.

Structure of this Manual

Everyone should read the Basic Concepts part. If you wish to use Search and Labels, you need to read just the Expressions part. If you wish to write scripts, you should also read the Statements part. The Reference parts contains many indexes for reference.