Equals/es: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
Line 2: Line 2:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
<p id="tooltip">Determines whether the two inputs are equivalent and returns true or false.</p>
<section begin="image"/>[[File:equals.png|alt=The Equals Block|thumb]]<section end="image"/><p id="tooltip">Determines whether the two inputs are equivalent and returns true or false.</p>
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Syntax==
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
Inputs in this block:
#a number
#a number
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:equals_example.gif|alt=Equals example gif|thumb]]
[[File:equals_example.png|alt=Equals example code|thumb]]
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
This is an epidemic model. The blocks above display an agent developing immunity. To accomplish this, sick turtles are identified by checking if they have a red color and then they receive a timer using the [[Special:MyLanguage/Yield|yield]] block before they develop immunity.
</div>
</div>


[[Category:Lógica]]
[[Category:Lógica]]
[[Category:Code Block]]
[[Category:Code Block]]

Latest revision as of 16:42, 14 August 2023

Other languages:
The Equals Block

Determines whether the two inputs are equivalent and returns true or false.

Syntax

Inputs in this block:

  1. a number
  2. a number

Example

This is an epidemic model. The blocks above display an agent developing immunity. To accomplish this, sick turtles are identified by checking if they have a red color and then they receive a timer using the yield block before they develop immunity.