Mike, >>> property::get-value(sql.init)
Should be property::get-value('sql.init') -- note the quotes. Without the quotes, NAnt tried to resolve sql.init into a value and then get ITS value. Actually, you can simplify your if-test to ${sql.init} since any non-quoted property name inside ${ ... } will automatically get expanded (which is what killed your original expression). Notice, however, that <target>'s if attribute can _prevent_ the target about to be executed from being executed, but it can't _cause_ the target to be executed. Something else would have had to reference <target> as though it were going to be executed before the target's if attribute is evalutated. Merrill ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users