Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Debug.printIf

Prints the specified message to the current debug output mechanism.

Syntax

public static void printIf( boolean condition**, String** message )

public static void printIf( String name**, String** message )

Parameters

condition

The condition by which message should be printed.

message

The message to print if condition is true.

name

The name of the switch to check.

Remarks

In the first syntax, this method prints the specified message if the condition evaluates to true. In the second syntax, this method prints the specified message if the specified switch is set to true.

By default, this method prints through System.out.print to the screen. This method will be omitted from your code unless you have the DEBUG conditional compile switch set.