I am having problems trying to get the result I want. Basically, what I want to do is to have a Boolean object that will allow me to have 3 options, if the mail program is old, I want it to be set to false (the value does not contain "mapQ.cmd" and "add- coid.cmd ")
if the mailer is new, I want it to be set to true (if it is new, it will contain the mapQ.cmd and add-coid.cmd files in the directory), and if it is not old or new mail (then there is no mailer), then I want it to be zero.
This is what I have, I want to put elseif instead of else and do another inside to set the value to zero, which means no higher, and then I want to return a boolean value. local-build-deploy.cmd is used in the example, but I want to use the above file names
private boolean isOldMailer(File mailerFolder) {
File localBuildAndDeploy = new File(mailerFolder,"test/local-build-deploy.cmd");
if (localBuildAndDeploy.exists()) {
return true;
} else {
return false;
}
}
source
share