[Thread Prev][Thread Next][Index]

Negating aymbols in conditionals



Hello all,

I'd like to use a logical NOT in a an IF statement which uses
a symbol as the conditional. Common use of symbols with IF
statements goes as:

if ($condition) then
  do this
endif

Is there a way to do something like:

if (!$condition) then
  do this
endif

where (!$conditon) stands for the negated evaluation of the
symbol ($condition).

I realize that it is trivial to swap the flag name and use
the ($condition) form rather than the (!$condition) form
but I'd still like to know whether there is a NOT in ferret.

thanks, 

David.

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
David Oxilia			Tel: (541) 737-2368
COAS:Oregon State University	Fax: (541) 737-2064
Ocean Admin. Bldg. 104		WWW: http://www.oce.orst.edu/po
Corvallis, OR 97331-5503	Email: oxilia@kundun.oce.orst.edu
*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement