on 08-12-2010 11:13 AM
Hi,
Is it possible to compare 3 values at a shot and map accordingly.
say if there are A1,A2 and A3 - can we compare all the three and assign a respective value to target field?
i.e, if A1 then 10, if A2 then 20 and if A3 then send blank.
I am able to compare only 2 values using if-else condition.
Please provide the inputs for the same.
Regards,
Rajkamal
yes you can compare using graphical functions and udf too..
graphical function use AND Functions
A1---------------
BOOLEAN EUQLS-------------
CONSTANT[10]--
AND FUNCTION-
A1---------------
BOOLEAN EUQLS-------------
CONSTANT[20]--
ANDFUNCTION ------->Target
A1---------------
BOOLEAN EUQLS-------------
CONSTANT[value]--
or use udf
pass three arguments as inout
If(A==10&&A2==20&&A3==30)
RETUNRN expected result.
Regards.
Raj
some ssmal chnages rwquired,i have not tersted this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> say if there are A1,A2 and A3 - can we compare all the three and assign a respective value to target field?
>
> i.e, if A1 then 10, if A2 then 20 and if A3 then send blank.
If am not wrong then this can be solved without any UDF just by using the "FixValues" std function (you can find it under Conversions ).
You can set your values as per your need and just do the mapping..
e.g.
Key Value
A1 --- 10
A2 --- 20
A3 --- []
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use fix value function,Here you can also mention the default value you need.
IF-- FIX VALUES(if A3=true)--equal to true(use constant) then send blank value.
Hope this helps
Regards,
Sainath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.