Equals: Difference between revisions
(updates from Blockument) |
(Marked this version for translation) |
||
Line 5: | Line 5: | ||
<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> | <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> | ||
==Syntax== | ==Syntax== <!--T:3--> | ||
<!--T:4--> | |||
Inputs in this block: | Inputs in this block: | ||
#a number | #a number | ||
#a number | #a number | ||
==Example== | ==Example== <!--T:5--> | ||
<!--T:6--> | |||
[[File:equals_example.gif|alt=Equals example gif|thumb]] | [[File:equals_example.gif|alt=Equals example gif|thumb]] | ||
[[File:equals_example.png|alt=Equals example code|thumb]] | [[File:equals_example.png|alt=Equals example code|thumb]] | ||
<!--T:7--> | |||
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. | 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. | ||
Latest revision as of 15:04, 14 August 2023
Determines whether the two inputs are equivalent and returns true or false.
Syntax
Inputs in this block:
- a number
- 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.