Skip to main content

Print to JS (condition)

Prints condition to JavaScript console for debugging.

Print to JS (condition) block

Description​

The Print to JS (condition) block prints condition to JavaScript console for debugging. This is a code block part of the JS Debugger drawer.

Usage​

Prints condition to JavaScript console for debugging.

Syntax​

Inputs in this block:

  • A condition or boolean value to print to the console

Example​

The Print to JS (condition) block is useful for debugging conditional logic in your StarLogo Nova programs by outputting boolean values to the browser's JavaScript console.

Notes​

To view the output, open your browser's developer console (usually F12) while running your StarLogo Nova project.