It may be possible depending on what the function you are testing. You can nest if statements.

http://www.techonthenet.com/excel/fo.../if_nested.php