If/es: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(One intermediate revision by the same user not shown)
Line 20: Line 20:
<section begin=image/>[[File:Si Es.png|right|alt=The if Block|thumb]]<section end=image/>
<section begin=image/>[[File:Si Es.png|right|alt=The if Block|thumb]]<section end=image/>
<!-- <code>si [Insert: Condition]</code> -->
<!-- <code>si [Insert: Condition]</code> -->
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:key_held_example.gif|alt=If example gif|thumb]]
[[File:if_example.png|alt=If example code|thumb]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
This is a game in which the frog attempts to catch flies. The player can move the frog using the arrow keys on the keyboard. The program can process this input using the if block in conjunction with [[Special:MyLanguage/Key Held?|key held?]] or [[Special:MyLanguage/Key Typed?|key typed?]].
</div>


<span id="Nuances"></span>
<span id="Nuances"></span>

Latest revision as of 18:05, 16 August 2023

Other languages:
el bloque si

si [_] es un bloque de código parte de lógica cajón.

if [_] is a code block part of the Logic drawer.

Uso

si [_] toma en declaraciones comparativas de la Lógica cajón para probar una condición. El agente solo seguirá los comandos adjuntos al gancho si la declaración es verdadera.

Sintaxis

The if Block

Example

If example gif
If example code

This is a game in which the frog attempts to catch flies. The player can move the frog using the arrow keys on the keyboard. The program can process this input using the if block in conjunction with key held? or key typed?.

Para tener en cuenta

Bloque relacionados