<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Форум QUIK [тема: Работа кода]</title>
		<link>http://forum.quik.ru</link>
		<description>Новое в теме Работа кода форума  на сайте Форум QUIK [forum.quik.ru]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Fri, 10 Apr 2026 02:24:06 +0300</pubDate>
		<item>
			<title>Работа кода</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message40487/topic4844/">Работа кода</a></b> <i>Действие кода в условном операторе 1 раз внутри постоянного цикла</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_FW2BUatj" href="/user/1103/" bx-tooltip-user-id="1103">Imersio Arrigo</a> написал:<br /> <br />====quote====<br /><noindex><a href="/user/13343/" target="_blank" rel="nofollow">Nikita</a></noindex> написал:<br />там были статические переменные, а тут их насколько я понял нет(<br />=============<br /> Переменные, объявленные за пределами main, по отношению к ней статические.<br />=============<br />Большое спасибо) Теперь все работает как надо) <br />
			<i>06.11.2019 18:36:47, Nikita.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message40487/topic4844/</link>
			<guid>http://forum.quik.ru/messages/forum10/message40487/topic4844/</guid>
			<pubDate>Wed, 06 Nov 2019 18:36:47 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Работа кода</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message40422/topic4844/">Работа кода</a></b> <i>Действие кода в условном операторе 1 раз внутри постоянного цикла</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_NJwu2AEX" href="/user/13343/" bx-tooltip-user-id="13343">Nikita</a> написал:<br />там были статические переменные, а тут их насколько я понял нет(<br />=============<br />Переменные, объявленные за пределами main, по отношению к ней статические. <br />
			<i>04.11.2019 05:09:45, Imersio Arrigo.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message40422/topic4844/</link>
			<guid>http://forum.quik.ru/messages/forum10/message40422/topic4844/</guid>
			<pubDate>Mon, 04 Nov 2019 05:09:45 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Работа кода</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message40419/topic4844/">Работа кода</a></b> <i>Действие кода в условном операторе 1 раз внутри постоянного цикла</i> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Здравствуйте, написал вот такой код<br /><br />function main()<br />Code={&quot;a1&quot;,&quot;a2&quot;, ..}<br />local R = &quot;No&quot;<br /> &nbsp; &nbsp; while R== &quot;No&quot; do<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for i=1, #Code do<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if i==1 then<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if x==y then <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;message(&quot;aaa&quot;..b)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if i==2 then<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if x==y then <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;message(&quot;aaa&quot;..b)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end &nbsp; &nbsp;<br /><br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /> &nbsp; &nbsp; end<br />end<br /><br />Возникла проблема с реализацией идеи, всю голову сломал, не могу понять как сделать так чтобы после выполнения условия if x==y при каком-то из значений i, сообщение выдавалось 1 раз, а после этот оператор (if i==1 или if i==2) заново начинал действовать только с новой минуты. Такое можно было сделать в metaeditor в мт4, там были статические переменные, а тут их насколько я понял нет( <br />
			<i>04.11.2019 00:32:38, Nikita.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message40419/topic4844/</link>
			<guid>http://forum.quik.ru/messages/forum10/message40419/topic4844/</guid>
			<pubDate>Mon, 04 Nov 2019 00:32:38 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
	</channel>
</rss>
