<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: почему срабатывает if?]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11816&amp;type=atom" />
	<updated>2016-07-17T08:58:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11816</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: почему срабатывает if?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106126#p106126" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br />спасибо!</p>]]></content>
			<author>
				<name><![CDATA[yurri_87]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33581</uri>
			</author>
			<updated>2016-07-17T08:58:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106126#p106126</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: почему срабатывает if?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106125#p106125" />
			<content type="html"><![CDATA[<p>Правильно будет вот так:<br /></p><div class="codebox"><pre><code>svv = razv
vk6d::
	if(svv = &quot;razv&quot;){
		msgbox razv
	}
	if(svv = &quot;sver&quot;){
		msgbox sver
	}
	return</code></pre></div><p>В вашем случае скрипт пытается достать значение из переменной <strong>razv</strong>.Получается первая переменная хранит имя второй переменной из которой будет получена информация.<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header"><strong>+</strong>&nbsp;Вот пример</div><div class="fancy_spoiler"><div class="codebox"><pre><code>A = B
B = C

if (%A% = &quot;C&quot;)
	msgbox 1
	
if (A = &quot;B&quot;)
	msgbox 2</code></pre></div></div></div><p>Что бы обозначить что это не переменная а текст, то нужно обозначить двойными кавычками.</p><p>P.s Блин на минуту опоздал .XD<br /><span class="postimg"><img src="http://i.imgur.com/h2GtQyC.png" alt="http://i.imgur.com/h2GtQyC.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-07-17T08:49:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106125#p106125</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: почему срабатывает if?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106124#p106124" />
			<content type="html"><![CDATA[<p>Потому что неправильный синтаксис.<br /></p><div class="codebox"><pre><code>
svv = razv
vkd6::
    if(svv = &quot;razv&quot;){
        msgbox razv
    }
    if(svv = &quot;sver&quot;){
        msgbox sver
    }
    return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2016-07-17T08:48:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106124#p106124</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: почему срабатывает if?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=106123#p106123" />
			<content type="html"><![CDATA[<p>скрипт:</p><div class="codebox"><pre><code>
svv = razv
vk6d::
	if(%svv% = razv){
		msgbox razv
	}
	if(%svv% = sver){
		msgbox sver
	}
	return
</code></pre></div><p>почему срабатывают оба условия? (двойное == в условиях не помогает)</p>]]></content>
			<author>
				<name><![CDATA[yurri_87]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33581</uri>
			</author>
			<updated>2016-07-17T08:11:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=106123#p106123</id>
		</entry>
</feed>
