Skip to main content

4.2) if...then...else Statement (cont'd)


The logical operators in IDL look the same as the Fortran ones, but without the dots.

Purpose IDL Fortran
Relational Operators
Equal To eq .eq.
Not Equal To ne .ne.
Less Than Or Equal To le .le.
Less Than lt .lt.
Greater Than Or Equal To ge .ge.
Greater Than gt .gt.
Boolean Opearators
And and .and.
Not not .not.
Or or .or.
Exclusive Or xor