Skip to Content
1
Former Member
Mar 26, 2012 at 10:01 AM

UDF not working properly

36 Views

Hi All

I have writted UDF to check the condition it is working fine in the Eclipse but when i test it in the XI it is not working as expected

The first if condition is not working

Any suggestions

if (a.equals("F") && (b != ("03")))

{

c="test";

System.out.println(c);

}

else if(a.equals("F") && (b.equals("3")))

{System.out.println("PMI");}

else if (a.equals("E"))

{

System.out.println("FAB");

}

else if (a.equals("X"))

{

System.out.println("MIX");

}

else

{

System.out.println("NA");

}

}}