With % Chance/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:with_chance.png|alt=The With % Chance Block|thumb]]<section end="image"/><p id=tooltip>Changes the probability that the code on the hook will be executed.</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 number | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Example== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[File:with_chance_example.gif|alt=With % Chance example gif|thumb]] | |||
[[File:with_chance_example.png|alt=With % Chance example code|thumb]] | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
The model above shows a contagious disease. On contact with a ‘sneeze’ agent, healthy agents have a 40% of contracting the disease (becoming red). | |||
</div> | |||
[[Category:Lógica]] | [[Category:Lógica]] | ||
[[Category:Code Block]] | [[Category:Code Block]] |