on 03-07-2008 10:29 PM
HI all,
I am using the FixValues conversion function in the MM. But i am getting some issue in using the mapped values in the UDF.
-
The mapping is as follows :
Input--> FixValues ---> MyUDF ---> output
-
The FixValues has following entries :
AND --> &
OR ---> ||
and default value is set as *
-
In UDF :
if ( input == "*" ) return ("END");
else return (input);
-
When I tested by providing
*input = "NOR" ; The fixValues took the value default value * (asterisk) . But when the UDF returned * (asterisk) which means that the IF conditional statement got failed.*
I dont really get this logic and return type from FixValues. I even tried with the numeric values, then also I am facing the same issue.
I appreciate your help and time.
Hi,
Try with the following code..
if ( input.trim().equals("*") ) return ("END");
else return (input);
You should do a String comparison using equals() method and not using == operator which is meant for comparing two objects..
Regards,
Ananth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.