From: Mehdi Bagherpour (mehdi.bpour_at_gmail.com)
Date: Tue Jun 16 2015 - 11:01:18 CDT

Dear vmd users,

I want to find minimum value of index of my selected atom atoms

*for {set x 0} {$x <= 334} {incr x} {*

*set sel1 [atomselect top "name P and within 6 of index $x"] *

*set sel2 [$sel1 get index]*
*.*
*.*
*.*

When I write *$sel2 get index *it takes *386 387 388 *

What is command of finding minimum of $sel2, I need because for each loop
we have different index number for $sel2.

I have done with:

*expr min [$sel2 get index]*

but I got this error:

*invalid bareword "min"*
*in expression "min 382 383 384";*
*should be "$min" or "{min}" or "min(...)" or ...*

Thanks
Mahdi