Its actually "if prop1 is defined, then xxx will be executed." It doesn't matter what the value is, the property just has to have a value. What you may need to do is script a test of the two properties and set (or not) a third property that the target you want to execute depends on.
Glenn McAllister Software Developer. IBM Toronto Lab, (416) 448-3805 "An approximate answer to the right question is better than the right answer to the wrong question." - John W. Tukey Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: Questions on Ant Well, What Ken suggests seems to be a kind of hack (even if it'd worked as he suppose). Am I right there's no "right" way to do what I need? Maybe it makes sense to modify Target.java so that a target could take a list of comma-separated properies names and check whether all of them are true? Max P.S. BTW, Ken says "if prop1 is true, xxx will be executed". Is it really so or "prop1" should simply be set regardless of its value? Thanks again, Max
