[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Re: replacing variables
> use _inrange_
> hsgrad = inrange(grade, 9, 12)
> Is it possible to shorten the 'if' statement in the replace below
> and still retain the upper and lower bounds?
> replace hsgrad = 1 if grade>=9 & grade<=12
Note that this is not exactly equivalent.
The difference is between a result which is
1 or 0 and one which is 1 or missing.
* For searches and help try: