<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19715" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2014-06-11T13:40:50-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19715</id>

		<entry>
		<author><name><![CDATA[kiely]]></name></author>
		<updated>2014-06-11T13:40:50-04:00</updated>

		<published>2014-06-11T13:40:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102896#p102896</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102896#p102896"/>
		<title type="html"><![CDATA[Find index where MarketName has certain value]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102896#p102896"><![CDATA[
<a href="https://github.com/kitaco/coinprice/blob/master/coinprice.tcl" class="postlink">https://github.com/kitaco/coinprice/blo ... nprice.tcl</a><br><br>I have this API <br>( <a href="https://bittrex.com/api/v1/public/getmarketsummaries" class="postlink">https://bittrex.com/api/v1/public/getmarketsummaries</a> ) where the index of the values I am trying to get, keeps changing.<br><br>I have <div class="codebox"><p>Code: </p><pre><code>set cloaklast [dict get [lindex [dict get $bittrex result] 28] Last]</code></pre></div> right now, and the 28 keeps changing. <br><br>I need to find the list value of MarketName: "BTC-CLOAK" (or any other value of MarketName) and put it in a variable to use so the index value is always kept up to date.<br><br>I think I need foreach or lsearch. I am unsure.<br><br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12402">kiely</a> — Wed Jun 11, 2014 1:40 pm</p><hr />
]]></content>
	</entry>
	</feed>
