Now suppose you want two conditions, in
some combination,
. list if myvar > 0 & yourvar > 0
. list if myvar > 0 | myvar > 0
Now please, for this only slightly
more complicated situation,
1. fill in truth tables
& true false irrelevant
true
false
irrelevant
| true false irrelevant
true
false
irrelevant
This is a toughie, and no matter what you do it will be confusing and error
prone. For what it is worth, what the rebel forces seem to be calling for
is basically what SPSS does. SPSS's way seems logical to me and if I ruled
the world this is how Stata would work. But, having gone down a different
path, you don't change things lightly, so perhaps some additional functions
or a variation of the if parameter (if2?) would be desirable. Anyway, here
are some excerpts from SPSS's documentation on the IF command, which
includes a filled in truth table: