Skip to Content
0
Former Member
Dec 06, 2006 at 11:53 AM

UDF Mapping Error... Simple code

589 Views

I am attempting to try a simple UDF

if (String a == String b || String a == String c)

return "yes";

however I get the following error...

Source code has syntax error:

/usr/sap/CXD/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map03a9a9e0852011dbaae9000d60de069c/source/com/sap/xi/tf/_MM_Source_Target_.java:39: ')' expected

if (String a == String b || String a == String c)

^

1 error

Now clearly I am missing ')' somewhere but I dont understand where...

I am trying to do a simple if String 1 is equal to String B or String a is equalt to String c then result is yes.

Can some one let me know where Im going wrong