If: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
No edit summary
Line 14: Line 14:
<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>
<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=== <!--T:18-->
==Syntax== <!--T:18-->


<!--T:19-->
<!--T:19-->
<code>if [Insert: Condition]</code>
<section begin=image/>[[File:If Nums.png|right|alt=The If Block|thumb]]<section end=image/>
<!-- <code>if [Insert: Condition]</code> -->


==Nuances== <!--T:20-->
==Nuances== <!--T:20-->

Revision as of 15:47, 26 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

The If Block

Nuances

Related Blocks