Larger Of And: Difference between revisions
(add tooltip text) |
(Marked this version for translation) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:3--> | |||
<section begin="image"/>[[File:larger_of_and.png|alt=The Larger Of And Block|thumb]]<section end="image"/> | |||
==Usage== <!--T:4--> | |||
<!--T:2--> | |||
<p id="tooltip">Returns the larger or smaller value of the two inputs.</p> | <p id="tooltip">Returns the larger or smaller value of the two inputs.</p> | ||
==Syntax== <!--T:5--> | |||
<!--T:6--> | |||
Inputs in this block: | |||
#a number | |||
#a number | |||
==Example== <!--T:7--> | |||
<!--T:8--> | |||
[[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]] | |||
<!--T:9--> | |||
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. | |||
<!--T:1--> | <!--T:1--> |
Latest revision as of 16:52, 14 August 2023
Usage
Returns the larger or smaller value of the two inputs.
Syntax
Inputs in this block:
- a number
- a number
Example
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.