If: Difference between revisions
(→Usage) |
(→Syntax) |
||
Line 7: | Line 7: | ||
===Syntax=== | ===Syntax=== | ||
<code>if [ | <code>if [Insert: Condition]</code> | ||
==Nuances== | ==Nuances== |
Revision as of 17:25, 1 February 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
if [Insert: Condition]