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

Home » Public Forums » archive » HELP with IF statement
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
HELP with IF statement [message #91268] Thu, 25 June 2015 04:10 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
I have a problem with IF statement

I wanted to check whether my array A has any zero element and if so then simply return a zero array (with two zeroes). I typed the following but am not sure if it's correct.

A FLOAT = Array[58]

FOR i=0L, 57 DO BEGIN
IF A[i] EQ 0 THEN RETURN, [0,0]
ENDFOR
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BYTSCL function
Next Topic: IDL Site Issues

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

Current Time: Wed Oct 08 09:20:02 PDT 2025

Total time taken to generate the page: 0.00455 seconds