>Hi all:
>
>What is the syntax to do the following with AN if..statement.
>
>
DO Case
> Case code = "A"
> if age =>55 and <65
> do A
> else
> if age =>65 and <74
> do B
> else
> if age >75
> do C
> else
> if age <55
> do D
> endif
> endif
> endif
> Case code = "B"
> similar if statements as above.
>endcase
>
>What is the best way to accomplish this? Thanks much.
You already are using IF statements. What is it you want to accomplish? Reduce the code? Use a single nested IIF()?
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)