// How ANT thinks about conditionals.
// This is how ANT would write java if ANT could
// write java programs.
static boolean doesFileExist;
static int i;
//..
doesFileExist = file.exists();
call maybeIncrement();
//..
void maybeIncrement()
   {
   if ( ! doesFileExist ) return;
   i++;
   }