If: Difference between revisions

From StarLogo Nova Wiki
(Created page with "Category:Logic <section begin=image/>alt=The if block|thumb<section end=image/> <section begin=name/>'''<code>if [_]</code>'''<section end=name/> is a code block part of the Logic drawer. ==Usage== <code>if [_]</code> 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=== <code>if [Special:Test]</code> ==Nuances==...")
 
Line 4: Line 4:


==Usage==
==Usage==
<code>if [_]</code> 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.
<p id="tooltip"><code>if [_]</code> 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.</p>


===Syntax===
===Syntax===

Revision as of 18:57, 17 August 2022

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 [Special:Test]

Nuances

Related Blocks