If/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
<language/>
<languages/>


[[Category:Logic]]
[[Category:Logic]]

Revision as of 15:44, 13 July 2023

Other languages:
The if block

if [_] is a code block part of the Logic drawer.

Usage

if [_] takes in comparative statements from the Logic drawer to test for a condition. The agent will only follow commands attached to the hook if the statement is true.

Syntax

if [Insert: Condition]

Nuances

Related Blocks