I'm sure someone will correct me if I'm wrong, but make sure you put a space at the beginning of the line before any of the directives. Otherwise, the assembler thinks it's a label. -----Original Message----- From: Juimiin Hong To: PICLIST@MITVMA.MIT.EDU Date: Thursday, August 05, 1999 1:32 PM Subject: Re: nested if statements > Sorry, I assumed you were talking 'C'. If so, also leave out the endif. If > you're talking assembler, that's a whole new ballgame. Also, are you > talking code or pre-processor (#if). Please be more specific. Sorry about not being more specific. I'm trying to use the MPASM directive language. The example in the MPASM User's Guide with MPLINK and MPLIB shows a simple if ; begin conditionally assembled code block else endif format, but I want to expand this to nested if statements. -Juimiin