conditional statement in .properties file
java, properties
Solution
No, it's not possible. The file format is freely available: http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html#load%28java.io.Reader%29.
Do this in Java code:
if (condition1) {
return properties.getProperty("xyz.1");
}
else if (condition2) {
return properties.getProperty("xyz.2");
}
Problem
Is there a way we can have conditional statement inside a `.properties` file? like: ``` if(condition1) xyz = abc else if(condition2) xyz = efg ```