comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Problem on where function
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Problem on where function [message #68796 is a reply to message #68792] Wed, 02 December 2009 12:15 Go to previous messageGo to previous message
M. Katz is currently offline  M. Katz
Messages: 69
Registered: May 2005
Member
You can also use the count argument in where.

Index = where(arr GT th, count)

arr[count-1] is the last element.
Having count also lets you test for the case where there are no
results.

if (count GT 0) then begin
...
endif
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Headless build
Next Topic: match_3d.pro

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:59:05 PDT 2025

Total time taken to generate the page: 1.67668 seconds