<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Найти самое большое число и маленькое]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13094&amp;type=atom" />
	<updated>2017-10-18T10:24:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13094</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Найти самое большое число и маленькое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120166#p120166" />
			<content type="html"><![CDATA[<p><strong>MandarinKa02</strong> То, что нужно! Спасибо большое.</p>]]></content>
			<author>
				<name><![CDATA[Vicoriyan]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38658</uri>
			</author>
			<updated>2017-10-18T10:24:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120166#p120166</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Найти самое большое число и маленькое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120164#p120164" />
			<content type="html"><![CDATA[<p>Такое?<br /></p><div class="codebox"><pre><code>
aCount := 5 ;кол-во чисел
var1 := 258, var2 := 114, var3 := 57, var4 := 313, var5 := 82
max := -1
min := -1
Loop, % aCount
{
	if(var%A_Index% &gt; max) {
		max := var%A_Index%
		continue
	}
	if(var%A_Index% &lt; min || min = -1) {
		min:= var%A_Index%
		continue
	}
}
msgbox % max &quot;`n&quot; min
</code></pre></div><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Вариант2(удобнее)</div><div class="fancy_spoiler"><div class="codebox"><pre><code>
aNumbers := &quot;258|114|57|313|82&quot;
max := -1, min := -1
Loop, parse, aNumbers, |
{
	if(A_LoopField &gt; max) {
		max := A_LoopField
		continue
	} if(A_LoopField &lt; min || min = -1) {
		min:= A_LoopField
		continue
	}
}
msgbox % max &quot;`n&quot; min
</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[MandarinKa02]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34409</uri>
			</author>
			<updated>2017-10-18T10:16:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120164#p120164</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Найти самое большое число и маленькое]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=120162#p120162" />
			<content type="html"><![CDATA[<p>Доброго времени суток.<br />Как мне найти самое большое и самое маленькое число с 5 переменных?<br />Например, у меня есть 5 переменных:<br /></p><div class="codebox"><pre><code>var1 := 258, var2 := 114, var3 := 57, var4 := 313, var5 := 82</code></pre></div><p>Нужно присвоить переменной max := 313, а переменной min :=&nbsp; 57</p>]]></content>
			<author>
				<name><![CDATA[Vicoriyan]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38658</uri>
			</author>
			<updated>2017-10-18T09:20:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=120162#p120162</id>
		</entry>
</feed>
