<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Fred,<br>
<br>
The list-abs library has an object [list-idx] which might be useful.
It's pretty easy to use.<br>
<br>
Kind regards,<br>
Lorenzo.<br>
<br>
Fred Smith wrote:
<blockquote
 cite="mid:ef69ef220910101545o776741b0sad60aa6564f7f851@mail.gmail.com"
 type="cite"><br>
Hello Folks -<br>
  <br>
I know there must be an easy way to do this, but I'm having terrible
trouble figuring it out.<br>
  <br>
Is there an easy way to use a integer input to send a message out of an
array of messages?<br>
  <br>
Ideally, it would look like this:<br>
  <br>
[bang]<br>
|<br>
[2]<br>
|<br>
[newcommand apple beats carrots cheeseburger]<br>
|<br>
[print]<br>
  <br>
and the output would be "carrots" (given 0 based indexing). Does this
command already exist?<br>
  <br>
(Oh, and I'm pushing this into a GEM text object, so the screen would
say "carrots" in some way).<br>
  <br>
I apologize if this is obvious, my head might be fatigued. select and
route take a value but split it into a bunch of different directions. I
want to go the other way....<br>
  <br>
Thanks for the time if anyone has a suggestion!!!<br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list
UNSUBSCRIBE and account-management -&gt; <a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a>
  </pre>
</blockquote>
</body>
</html>