Print to JS (condition)
Prints condition to JavaScript console for debugging.
.webp)
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.
Related Blocks
- Print to JS (value) - Print values to the JavaScript console