print (string)

This construct prints a string, phrase or rule name to the standard output.

Purpose

You use this construct to define an action phrase that by default outputs a string to the standard output.

Syntax

print "<string>";

Description

You can modify this behavior by setting a note handler on the note method of the rule engine.

Example

The following action prints the string "Hello World!" to standard output.

print “Hello World!” ;