Sure. Have a look at the <equals> condition. http://ant.apache.org/manual/CoreTasks/conditions.html
-- Srivathsan -----Original Message----- From: Leo [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 18, 2006 5:30 PM To: user@ant.apache.org Subject: checking property values Hi, Iam trying to write a Ant based installer. It basically will ask for input from the user and then based on that information does different things. Iam not sure how to check if certain property is something? Ex: <input message="Enter the number of Servers" addproperty="numservers"/> ... Now I need to do different things depending on the value of numservers. Like in programming languages, we do: if (numservers == 1) { ..... } else if (numservers > 1) { .... } Can we do something similar using Ant? Thanks! --------------------------------- Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. ************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]