Equals

From StarLogo Nova Wiki
Revision as of 15:03, 14 August 2023 by Admin (talk | contribs) (updates from Blockument)
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

Equals example code

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.