<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Условия if else between]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9721&amp;type=atom" />
	<updated>2014-06-23T19:34:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9721</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условия if else between]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84139#p84139" />
			<content type="html"><![CDATA[<p>Спасибо это подходит. Я думал что так задавать условия в условии нельзя, оказывается проблема была в неправильных числах</p>]]></content>
			<author>
				<name><![CDATA[Dworkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27052</uri>
			</author>
			<updated>2014-06-23T19:34:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84139#p84139</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условия if else between]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84126#p84126" />
			<content type="html"><![CDATA[<p>Скрипт подошел? Чтобы включить четверки и исключить ноль:<br /> </p><div class="codebox"><pre><code>if (RaznicaH &gt;= -4 and RaznicaH &lt;= 4 and RaznicaH &lt;&gt; 0)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[otecubuntu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29967</uri>
			</author>
			<updated>2014-06-23T18:04:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84126#p84126</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условия if else between]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84106#p84106" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>otecubuntu пишет:</cite><blockquote><div class="codebox"><pre><code>
;Это сообщение никогда не высветится, потому что Enemy всегда равно 1</code></pre></div></blockquote></div><p>Я знаю это. Я специально так сделал что бы показать что у меня условия в условии. <br />В моем же не измененном скрипте есть слежение за Enemy</p>]]></content>
			<author>
				<name><![CDATA[Dworkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27052</uri>
			</author>
			<updated>2014-06-22T18:12:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84106#p84106</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Условия if else between]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84101#p84101" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
Enemy := 1
InputBox, RaznicaH, Enter a number

if (Enemy = 0)
   {
;Это сообщение никогда не высветится, потому что Enemy всегда равно 1
;Нужна формула до if, типа Enemy := RaznicaH - Enemy
   msgbox, Враг мертв либо его нет
   }

if (Enemy &lt;&gt; 0)
   {

   if ( RaznicaH &gt; 4)
      {
      msgbox, Вы вели число больше 4
      }

   if ( RaznicaH &lt; -4)
      {
      msgbox, Вы вели число меньше -4
      }
   if (RaznicaH &gt; -4 and RaznicaH &lt; 4 )
      {
      msgbox, Вы вели число 0-4 или -4-0
      }
   }
return

F2::reload
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[otecubuntu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=29967</uri>
			</author>
			<updated>2014-06-22T17:03:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84101#p84101</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Условия if else between]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84056#p84056" />
			<content type="html"><![CDATA[<p>Здравствуйте.<br />Как я понял у меня что-то неправильно в условиях, но я не пойми что.<br />Водишь 0 то ничего не происходит.</p><p>Вводишь 10, то высвечивается сообщения что &quot;ввел число больше 4&quot; и так же выводить что &quot;ввел число между 0-4 или -4-0&quot;.</p><p>Вводишь -10 то высвечивается сообщения что &quot;ввел число меньше -4&quot; и так же выводить что &quot;ввел число между 0-4 или -4-0&quot;.</p><p>Ах да по условиям число может быть либо больше 4 либо меньше не включая. И между 0-4 включая и между -4-0 включая</p><div class="codebox"><pre><code>Enemy := 1
InputBox, RaznicaH, Enter a number

settimer, draw

draw:
if (Enemy = 0)
   {
   msgbox, Враг мертв либо его нет
   }
else if (Enemy &lt;&gt; 0)
   {
   if ( RaznicaH &gt; 4)
      {
      msgbox, Вы вели число больше 4
      }

   if (RaznicaH &lt; -4)
      {
      msgbox, Вы вели число меньше -4
      }

   if (RaznicaH between 0 and 4 or RaznicaH between -4 and 0)
      {
      msgbox, Вы вели число 0-4 или -4-0
      }
   }
return

F2::reload
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Dworkin]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27052</uri>
			</author>
			<updated>2014-06-21T11:36:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84056#p84056</id>
		</entry>
</feed>
