No Igualar

From StarLogo Nova Wiki
This page is a translated version of the page Not Equals and the translation is 20% complete.
Other languages:
The Not Equals Block

Usage

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

Syntax

Inputs in this block:

  1. a number
  2. a number

Example

Not Equals example gif
Not Equals example code

The model above is of a debilitating disease. Agents that do not have the disease, as determined by an if statement (‘if my color != color red’), are able to move normally. While the diseased agents are only able to move at a tenth of their usual speed. The result is a disease that spreads much more slowly, as diseased agents cannot move quickly into groups of healthy agents to infect them.