on 08-28-2010 6:10 AM
HI Guys,
Plese give me some ideas how to write a UDF, with one input value (true) and return two answers "True" and "False".
any inputs about this please?
Regards
San
Use the following UDF code and map ur input as shown below.
input---->removeContext------>UDF---->Output.
UDF code(select "All values of Context" while creating UDF,and name of the input parameter is "input")
for (int i=0;i<input.length;i++)
{
If(input<i>.equals("True")
{
result.addValue("True");
result.addValue("False");
}
else
result.addValue(input<i>);
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please Brief , what is your actual reqt ... ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I am getting four values in one queue, like true,true,false,true. If true comes in I need to produce two values like true and false, in case if false comes in any instance only one output false has to come out.
in short with that four values i need to produce 6 outputs. is it possible ??
Many Thanks
Regards
San
I think you can do this graphicaly , there is no need to use ..... UDF
What i understand is , you reqd. a
FALSE , TRUE ,FALSE , FALSE -
> for these two .... on the basis of that by using graphical mapping -
> You can get DISTINCT VALUES i.e result would be a queue contains ... TRUE , FALSE .
FALSE , FALSE ,FALSE , FALSE -
> for these two .... on the basis of that by using graphical mapping -
> You can get DISTINCT VALUES i.e result would be a queue contains ... FALSE only
TRUE, TRUE, TRUE, TRUE -
> for these two .... on the basis of that by using graphical mapping -
> You can get DISTINCT VALUES i.e result would be a queue contains ... TRUE only
am i understanding right ..if yes.... I will let you know the GRAPHICAL NODE FUNCTIONS
regards
Prabhat Sharma
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.