<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Need logical calculation&#x2F;control actor suggestion]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I am trying to find the right actor to interpret more than one value of "if then": I have 8 sensors each outputting 1 when on, 0 when off. I'm trying to find an actor that can do "if all 8 values are 0, then output 1 or trigger".</p>
<div>I've tried the Lookup actor, but it doesn't seem to do what I want.  
<p dir="auto">I'm sure this is quite easy, but I can't seem to find the right actor for it.</p>
<p dir="auto">Thanks very much</p>
</div>]]></description><link>https://community.troikatronix.com/topic/1559/need-logical-calculation-control-actor-suggestion</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 15:03:53 GMT</lastBuildDate><atom:link href="https://community.troikatronix.com/topic/1559.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Oct 2014 06:33:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Thu, 23 Oct 2014 11:06:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/520">@chimerik</a></p>
<p dir="auto">the tutorial on Javascript for Isadora might be worth a read.<br />
<br />
<a href="http://troikatronix.com/support/kb/getting-started-with-javascript/" rel="nofollow ugc">http://troikatronix.com/support/kb/getting-started-with-javascript/</a></p>
]]></description><link>https://community.troikatronix.com/post/13289</link><guid isPermaLink="true">https://community.troikatronix.com/post/13289</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Thu, 23 Oct 2014 11:06:17 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Thu, 23 Oct 2014 09:37:34 GMT]]></title><description><![CDATA[<p dir="auto">and thank you @<a href="http://troikatronix.com/troikatronixforum/profile/35/gavspav" rel="nofollow ugc">gavspav</a><span style="color:rgb(119, 119, 119);font-family:Verdana, Geneva, sans-serif;font-size:10px;line-height:18px;background-color:rgb(255, 255, 255)"> </span></p>
<div>I just realized you've already suggested it as well. i'll try the javascript actor too, just for fun. cheers.</div>]]></description><link>https://community.troikatronix.com/post/13285</link><guid isPermaLink="true">https://community.troikatronix.com/post/13285</guid><dc:creator><![CDATA[chimerik]]></dc:creator><pubDate>Thu, 23 Oct 2014 09:37:34 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Thu, 23 Oct 2014 09:35:46 GMT]]></title><description><![CDATA[<p dir="auto">Wow, thank you <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/124">@DusX</a> &amp; <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/7">@Michel</a>!<br />
I didn't know about the Maximum actor. this is so great! yes, the easiest solution! thanks so much.</p>
]]></description><link>https://community.troikatronix.com/post/13284</link><guid isPermaLink="true">https://community.troikatronix.com/post/13284</guid><dc:creator><![CDATA[chimerik]]></dc:creator><pubDate>Thu, 23 Oct 2014 09:35:46 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Thu, 23 Oct 2014 07:44:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/26">@gavspav</a></p>
<div>yes,Maximum is an easier choice than lookup.</div>
<div>Its probably the easiest native Isadora solution.</div>]]></description><link>https://community.troikatronix.com/post/13282</link><guid isPermaLink="true">https://community.troikatronix.com/post/13282</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Thu, 23 Oct 2014 07:44:50 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Thu, 23 Oct 2014 02:34:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/26">@gavspav</a></p>
<p dir="auto">yep the maximum actor is even simpler to setup.</p>
]]></description><link>https://community.troikatronix.com/post/13276</link><guid isPermaLink="true">https://community.troikatronix.com/post/13276</guid><dc:creator><![CDATA[Michel]]></dc:creator><pubDate>Thu, 23 Oct 2014 02:34:58 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Sat, 17 Jan 1970 08:47:06 GMT]]></title><description><![CDATA[<p dir="auto">Thats great too!</p>
<div>  
<div>Another way - how about the Maximum actor with 8 inputs. </div>
<div>The advantage of this is that the 8 value inputs are 'active' - with the lookup actor you have to keep sending '1' to the compare input every time you want the actor to do its thing.</div>
</div>
<div>Sorry if I'm getting a bit anal. On the same note here's a rewrite of the javascript:</div>
<pre>function main()
{
for (i=0;i&lt;8;i++) {
	if (arguments[i]==1) {
		return 1;
 		break;
		}
	}
return 0;
}</pre>]]></description><link>https://community.troikatronix.com/post/13275</link><guid isPermaLink="true">https://community.troikatronix.com/post/13275</guid><dc:creator><![CDATA[gavspav]]></dc:creator><pubDate>Sat, 17 Jan 1970 08:47:06 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Wed, 22 Oct 2014 12:40:41 GMT]]></title><description><![CDATA[<p dir="auto">The javascript method is great.</p>
<div>But another very simple one can be setup using the 'Lookup' actor.  
</div>
<div>It will output 0 if the 'compare' input is not found in the X (eight for this case) inputs.</div>
<div>Otherwise it will say which input matches the 'compare'</div>
<div>If your binary values run into eight value inputs, and you compare '1', you will receive a '0' if all of your eight values are not 1, and a value between 1 and 8 if there is a match.</div>]]></description><link>https://community.troikatronix.com/post/13269</link><guid isPermaLink="true">https://community.troikatronix.com/post/13269</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Wed, 22 Oct 2014 12:40:41 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Tue, 21 Oct 2014 23:26:55 GMT]]></title><description><![CDATA[<p dir="auto">Well spotted <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/26">@gavspav</a> ;)</p>
]]></description><link>https://community.troikatronix.com/post/13265</link><guid isPermaLink="true">https://community.troikatronix.com/post/13265</guid><dc:creator><![CDATA[Skulpture]]></dc:creator><pubDate>Tue, 21 Oct 2014 23:26:55 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Sat, 17 Jan 1970 08:44:57 GMT]]></title><description><![CDATA[<p dir="auto"><span style="font-family:Verdana, Geneva, sans-serif;font-size:12px;line-height:16.7999992370605px;background-color:rgb(255, 255, 255)">Or paste the following into a javascript actor with 8 inputs</span><code>function main(){ total=0; for (i=0;i&lt;8;i++) { total+=arguments[i] } return total&gt;0; }</code></p>
]]></description><link>https://community.troikatronix.com/post/13263</link><guid isPermaLink="true">https://community.troikatronix.com/post/13263</guid><dc:creator><![CDATA[gavspav]]></dc:creator><pubDate>Sat, 17 Jan 1970 08:44:57 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Tue, 21 Oct 2014 08:09:39 GMT]]></title><description><![CDATA[<div>@[Michel](http://troikatronix.com/troikatronixforum/profile/9/Michel)<span style="color:rgb(119, 119, 119);font-family:Verdana, Geneva, sans-serif;font-size:10px;line-height:18px;background-color:rgb(255, 255, 255)"> </span></div>
<div>YES!!! This is it! So simple, but need intelligent brains to show me the way. Thanks so much!</div>]]></description><link>https://community.troikatronix.com/post/13261</link><guid isPermaLink="true">https://community.troikatronix.com/post/13261</guid><dc:creator><![CDATA[chimerik]]></dc:creator><pubDate>Tue, 21 Oct 2014 08:09:39 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Tue, 21 Oct 2014 07:35:52 GMT]]></title><description><![CDATA[<p dir="auto">Michel was faster...</p>
]]></description><link>https://community.troikatronix.com/post/13260</link><guid isPermaLink="true">https://community.troikatronix.com/post/13260</guid><dc:creator><![CDATA[Reinhard]]></dc:creator><pubDate>Tue, 21 Oct 2014 07:35:52 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Tue, 21 Oct 2014 07:35:50 GMT]]></title><description><![CDATA[<p dir="auto">Seems like an ideal place for the javascript actor.</p>
<div>Also very minor bug report - it says compatator in the help for the comparator actor (see Skulptures post above)</div>]]></description><link>https://community.troikatronix.com/post/13259</link><guid isPermaLink="true">https://community.troikatronix.com/post/13259</guid><dc:creator><![CDATA[gavspav]]></dc:creator><pubDate>Tue, 21 Oct 2014 07:35:50 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Sat, 17 Jan 1970 08:44:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/520">@chimerik</a></p>
<p dir="auto">this is quite easy: use four calculator actors for the input values, then another two to get the summary of two pairs and another one to get the summary from them. Then take a comparator actor that is looking for zero, if zero then the output is one otherwise zero. See attached image.</p>
<p dir="auto">Best<br />
Michel<br />
<img src="/uploads/files/FileUpload/01/62cf46-screen-shot-2014-10-21-um-18.19.26.png" alt="62cf46-screen-shot-2014-10-21-um-18.19.26.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://community.troikatronix.com/post/13256</link><guid isPermaLink="true">https://community.troikatronix.com/post/13256</guid><dc:creator><![CDATA[Michel]]></dc:creator><pubDate>Sat, 17 Jan 1970 08:44:36 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Tue, 21 Oct 2014 07:12:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi @<a href="http://troikatronix.com/troikatronixforum/profile/6/Skulpture" rel="nofollow ugc">Skulpture</a>,</p>
<p dir="auto">I need to compare 8 values though. If all 8 values = 0 then output 1.</p>
<p dir="auto">If there any actor that can compare more than 1 values?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.troikatronix.com/post/13255</link><guid isPermaLink="true">https://community.troikatronix.com/post/13255</guid><dc:creator><![CDATA[chimerik]]></dc:creator><pubDate>Tue, 21 Oct 2014 07:12:17 GMT</pubDate></item><item><title><![CDATA[Reply to Need logical calculation&#x2F;control actor suggestion on Tue, 21 Oct 2014 06:56:18 GMT]]></title><description><![CDATA[<p dir="auto">Comparator actor? <img src="http://troikatronix.com/troikatronixforum/uploads/FileUpload/5b/6d0d65-screen-shot-2014-10-21-at-16.56.12.png" alt class=" img-responsive img-markdown" /> <img src="/uploads/files/FileUpload/5b/6d0d65-screen-shot-2014-10-21-at-16.56.12.png" alt="6d0d65-screen-shot-2014-10-21-at-16.56.12.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://community.troikatronix.com/post/13254</link><guid isPermaLink="true">https://community.troikatronix.com/post/13254</guid><dc:creator><![CDATA[Skulpture]]></dc:creator><pubDate>Tue, 21 Oct 2014 06:56:18 GMT</pubDate></item></channel></rss>