If/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 13: | Line 13: | ||
==Syntax== | ==Syntax== | ||
[[File:If Nums.png|right|alt=The If Block|thumb]] | |||
<!-- <code>if [Insert: Condition]</code> --> | <!-- <code>if [Insert: Condition]</code> --> | ||
Inputs in this block: | Inputs in this block: |
Revision as of 14:09, 11 August 2023
Test for something. If true, then the agent follows the commands attached to the hook.
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)