Larger Of And/en: 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 1: Line 1:
<languages/>
<languages/>
<section begin="image"/>[[File:larger_of_and.png|alt=The Larger Of And Block|thumb]]<section end="image"/>
==Usage==
<p id="tooltip">Returns the larger or smaller value of the two inputs.</p>
==Syntax==
Inputs in this block:
#a number
#a number
==Example==
[[File:larger_of_and_example.gif|alt=Larger Of And example gif|thumb]]
[[File:larger_of_and_example.png|alt=Larger Of And example code|thumb]]
This is a model of a political community leading up to an election.  Prior to the election, the different agents discuss with each other and change each other’s political views. There is a databox that uses the larger of block to return the number of people that support the winning party at the time. The election day button reveals which party had the most support and displays a president under that party.


[[Category:Math]]
[[Category:Math]]
[[Category:Code Block]]
[[Category:Code Block]]

Latest revision as of 17:26, 14 August 2023

Other languages:
The Larger Of And Block

Usage

Returns the larger or smaller value of the two inputs.

Syntax

Inputs in this block:

  1. a number
  2. a number

Example

Larger Of And example code

This is a model of a political community leading up to an election. Prior to the election, the different agents discuss with each other and change each other’s political views. There is a databox that uses the larger of block to return the number of people that support the winning party at the time. The election day button reveals which party had the most support and displays a president under that party.