If: Difference between revisions

From StarLogo Nova Wiki
No edit summary
Line 1: Line 1:
<languages/>
<translate>
[[Category:Logic]]
[[Category:Logic]]
<section begin=image/>[[File:If.png|alt=The if block|thumb]]<section end=image/>
<section begin=image/>[[File:If.png|alt=The if block|thumb]]<section end=image/>
Line 13: Line 16:
==Related Blocks==
==Related Blocks==
*<code>[[If Else|if [_] else]]</code>
*<code>[[If Else|if [_] else]]</code>
</translate>

Revision as of 14:18, 16 March 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