Not/es: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<section begin="image"/>[[File:not.png|alt=The Not Block|thumb]]<section end="image"/> | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Usage== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
<p id="tooltip">Negates the input. So, if the expression evaluates to true, then returns false. If the expression evaluates to false, then returns true.</p> | <p id="tooltip">Negates the input. So, if the expression evaluates to true, then returns false. If the expression evaluates to false, then returns true.</p> | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Syntax== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
Inputs in this block: | |||
#a comparative statement block ([[Special:MyLanguage/Equals|=]] statements, [[Special:MyLanguage/Greater Than|>]] statements, [[Special:MyLanguage/Not|not]] statement, [[Special:MyLanguage/And|and]]/[[Special:MyLanguage/Or|or]] statements) | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Example== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[File:not_example.gif|alt=Not example gif|thumb]] | |||
[[File:not_example.png|alt=Not example code|thumb]] | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
This is a model of mosquitoes spreading malaria through a population of adults and children. A small portion of the population has sickle cell anemia which reduces the agent's susceptibility to malaria. When the custom trait ‘sickle cell anemia’ or ‘malaria’ [[Special:MyLanguage/Equals|equals]] 1, the agent has the disease. When the malaria trait is set to 0, the agent does not have malaria. The not block allows the code to isolate the agents without sickle cell anemia. | |||
</div> | </div> | ||
[[Category:Lógica]] | [[Category:Lógica]] | ||
[[Category:Code Block]] | [[Category:Code Block]] |
Latest revision as of 18:36, 14 August 2023
Usage
Negates the input. So, if the expression evaluates to true, then returns false. If the expression evaluates to false, then returns true.
Syntax
Inputs in this block:
Example
This is a model of mosquitoes spreading malaria through a population of adults and children. A small portion of the population has sickle cell anemia which reduces the agent's susceptibility to malaria. When the custom trait ‘sickle cell anemia’ or ‘malaria’ equals 1, the agent has the disease. When the malaria trait is set to 0, the agent does not have malaria. The not block allows the code to isolate the agents without sickle cell anemia.