1.2. Document Conventions

Examples of Qore code are given in the following font:

#!/usr/bin/qore
#
# this is an example of Qore code

keywords are given in bold:

# "if" is a key word
if ($a == 1) print("yes\n");

placeholders are given in italics:

if ( expression ) 
    statement

where expressions and statements are defined in this document. The text above indicates that any valid expression and any valid statement may be used in the positions indicated.

Optional text is given in square brackets "[" and "]" as follows:

sub name([$variable1, $variable2, ...])

indicating that an arbitrarily long list of variable names separated by commas (or nothing at all) may appear in subroutine (function) declarations.