<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Установка значения переменной, которое зависит от другой перемен.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=10762</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10762&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Установка значения переменной, которое зависит от другой перемен.».]]></description>
		<lastBuildDate>Wed, 08 Jul 2015 15:21:57 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Установка значения переменной, которое зависит от другой перемен.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=95113#p95113</link>
			<description><![CDATA[<p>Спасибо всем за ответы. Я пример play для примера кинул, чтобы вы поняли о чем идет речь.</p>]]></description>
			<author><![CDATA[null@example.com (tuma4ok)]]></author>
			<pubDate>Wed, 08 Jul 2015 15:21:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=95113#p95113</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Установка значения переменной, которое зависит от другой перемен.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=95111#p95111</link>
			<description><![CDATA[<p>Ещё, в некоторых случаях можно использовать массив, наглядно когда много вариантов.<br /></p><div class="codebox"><pre><code>lang := &quot;ru&quot;
trans := {&quot;ru&quot;:&quot;en&quot;,&quot;en&quot;:&quot;ru&quot;}[lang]
MsgBox % trans</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 08 Jul 2015 14:25:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=95111#p95111</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Установка значения переменной, которое зависит от другой перемен.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=95108#p95108</link>
			<description><![CDATA[<div class="codebox"><pre><code>trans := lang = &quot;ru&quot; ? &quot;en&quot; : &quot;ru&quot;</code></pre></div><p>Вариант типа <em>play := !play</em> здесь не подойдёт.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 08 Jul 2015 14:09:18 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=95108#p95108</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Установка значения переменной, которое зависит от другой перемен.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=95099#p95099</link>
			<description><![CDATA[<p>Здравствуйте дорогие друзья. Возник вопрос с которым я все никак не могу разобраться. И так, приступим к описанию проблемы.<br />У меня есть переменная <strong>lang</strong>. Данная переменная может быть равна любому значению.<br />Так же у меня есть 2 переменная <strong>trans</strong>. Она должна зависеть от переменной <strong>lang</strong> следующим образом:<br />Если переменная <strong>lang</strong> != &quot;ru&quot; - то <strong>trans</strong> := &quot;ru&quot;<br />Если переменная <strong>lang = &quot;ru&quot;</strong> - то <strong>trans</strong> := &quot;en&quot;</p><p>Да, я мог бы сделать методами <strong>if</strong> и <strong>else</strong>, но мне нужно что-то в виде такого формата.<br /></p><div class="codebox"><pre><code>Status := (play := !play) ? &quot;Включен&quot; : &quot;Выключен&quot;</code></pre></div><p>Это код из старой темы. Так же, кому не сложно, попрошу вас объяснить как работать с такими переменными или как их назвать я не знаю. В общем, жду ваших ответов.<br />Заранее спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (tuma4ok)]]></author>
			<pubDate>Wed, 08 Jul 2015 13:25:29 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=95099#p95099</guid>
		</item>
	</channel>
</rss>
