on 06-18-2010 6:23 AM
if (a.equals= = 311&&b.equals == SL02&&c.equals==SL01))
return "SL04";
elseif(a.equals= = 311&&b.equals == SL01&&c.equals==SL11))
return "SL01";
Problem in this UDF
Regards
Skancham
why are you using UDF. You should use a UDF only if its not possible with Graphical node functions. Your conditions can easily be achieved without an UDF. Check the node functions and do it.
Thanks
S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this code or you can directly use the predefined AND and EQUALS functions.
if (a.equals("311") && b.equals("SL02") && c.equals("SL01"))
return "SL04";
elseif(a.equals("311") && b.equals("SL01") && c.equals("SL11"))
return "SL01";
Regards
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Your UDF code syntax is totally wrong. you are using the equals method and using the == also. It should not be like that.
Please modify the code as shown.
if (a.equals("311")&&b.equals("SL02")&&c.equals("SL01"))
return "SL04";
elseif(a.equals("311")&&b.equals("SL01")&&c.equals("SL11"))
return "SL01";
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you dont need UDF at all,use equals function(TEXT) and "AND" function,it will work.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.