Tutorial (.pdf) - University of Melbourne
Tutorial (.pdf) - University of Melbourne
Tutorial (.pdf) - University of Melbourne
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Programming: IF/THEN/ELSE<br />
pro equality,a,b<br />
if (a EQ b) then begin<br />
print,’a,b’,a,b<br />
endif else begin<br />
a=b<br />
endelse<br />
end<br />
IDL> d=3 & e=7<br />
IDL> equality,d,e<br />
IDL> print,d<br />
7<br />
EQ<br />
NE<br />
LT<br />
LE<br />
GT<br />
GE<br />
NOT<br />
equal<br />
not equal<br />
less than<br />
less than or equal to<br />
greater than<br />
greater than or equal to<br />
not<br />
© Robert E. Scholten 2001, 2005<br />
26