I guess the code Gary gave should be fine...
we can use multiple decodes for nested conditions quite
easily...........but when the levels of nesting becomes high then
maintanenece of code becomes difficult