If: Difference between revisions
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
<section begin=image/>[[File:If Nums.png|right|alt=The If Block|thumb]]<section end=image/> | <section begin=image/>[[File:If Nums.png|right|alt=The If Block|thumb]]<section end=image/> | ||
<!-- <code>if [Insert: Condition]</code> --> | <!-- <code>if [Insert: Condition]</code> --> | ||
Inputs in this block: | |||
#a comparative statement block (+ statements, > statements, Not statement, and/or statements) | |||
==Nuances== <!--T:20--> | ==Nuances== <!--T:20--> |
Revision as of 16:16, 26 July 2023
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
Inputs in this block:
- a comparative statement block (+ statements, > statements, Not statement, and/or statements)