Difference between revisions of "Lowest"

From Sega Retro

(Created page with "<includeonly>{{#ifexpr: {{{1|9999}}}>{{{2|9999}}} | {{#ifexpr: {{{2}}}>{{{3|9999}}} | {{{3}}} | {{{2}}} }} | {{#ifexpr: {{{1}}}>{{{3|9999}}} | {{{3}}} | {{{1}}} }} }}</include...")
 
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr: {{{1|9999}}}>{{{2|9999}}}
+
<includeonly>{{clearvar|lowest}}{{#fornumargs:  
| {{#ifexpr: {{{2}}}>{{{3|9999}}} | {{{3}}} | {{{2}}} }}
+
| nnn
| {{#ifexpr: {{{1}}}>{{{3|9999}}} | {{{3}}} | {{{1}}} }}
+
| {{#if: {{#var:nnn}} | {{#iferror: {{#expr:{{#var:nnn}}}} ||{{#if:{{#var:lowest}}||{{#vardefine:lowest|{{#var:nnn}}}}}}{{#ifexpr: {{#var:nnn}}<{{#var:lowest}} | {{#vardefine:lowest|{{#var:nnn}}}} }}}} }}}}{{#if:{{{var|}}}|{{#vardefine:{{{var|}}}|{{#var:lowest}}}}|{{#var:lowest}}}}</includeonly><noinclude>
}}</includeonly>
+
This template returns the lowest number from a series of numbers.
 +
 
 +
Use the parameter <tt>var</tt> to send the value to a variable instead of displaying it.{{lowest|poop}}
 +
[[Category:Templates]]</noinclude>

Latest revision as of 13:18, 1 January 2022

This template returns the lowest number from a series of numbers.

Use the parameter var to send the value to a variable instead of displaying it.