5.2) More Than One Test (cont'd)
On the other hand, if you only require one of the two tests to be satisfied then use .or.
. For example:
if ( a > b .or. c < d ) then print *, ‘a is greater than b or c is less than d’ endif
The first test that is true will enable the code to progress to line 2 (if the first test a > b
is true then c < d
is not even tested).