I need to check for 3 objects, say foo of type string, baz of type object and bar as of type string.
if foo exists, i do fooDo
else i do bazDo and assign baz value to bar
and finally as a last resort i go for barDo but if bar is null i gave an output.
I try to do this in try catch, and nesting ifs. Any ideas for pseudocode?