RE: List Position
- To: mathgroup at smc.vnet.net
- Subject: [mg15778] RE: [mg15740] List Position
- From: "Jean-Marie THOMAS" <jmthomas at agat.net>
- Date: Sun, 7 Feb 1999 02:03:55 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Try this: Module[{m},m=Min[myList]; Position[l,m/;m<0]] Hope this helps, **************************************** Jean-Marie THOMAS mailto:jmthomas at agat.net Conseil et Audit en Ingenierie de Calcul Strasbourg, France http://www.agat.net **************************************** -----Original Message----- From: Harry flynn [mailto:harry.f at ukonline.co.uk] To: mathgroup at smc.vnet.net Subject: [mg15778] [mg15740] List Position Can anyone tell me how I find the position in a list of the first value less than or equal to zero. For example, how can I get Mathematica to tell me that in the list {{1},{1},{2},{8},{-3}} that the first value of interest to me is position 5. Thanks in advance. Harry.