Errr, I did not mean Uppercase or Lowercase. I just want the output is "High" , "Mid", and "Low" In Java, the logic suppose to be like this: if field.chatAt( 7 ).equalsIgnoreCase("X") output("Low") else if field.charAt( 7 ).equalsIgnoreCase("Y") output ("Mid") else output("High") I don't know why, when I use .charAt() func, the number in quotes always underlined, marked as an error. I change the lang from Groovy to Java, but it is still there. By the way, I use iReport 4.0.1 Thanks for the reply, I will keep trying. Post Edited by lucif3r at 04/19/2011 01:00