Hi All,
We are currently busy with the upload of transactional data using a Transformation/ conversion file.
Part of the transformation we need to determine value based on the first 2 integer values of a col. If the value is less than 50 we asign one value greater than 50 we asign a diffrent value
unfortunatly you can't use < or > in the transformation (as below)
P_FLOW=*if (*COL(4,1:2) < *STR(1) then *STR(P99);*STR(F_NONE))
I've tried to use a conversion file (JavaScript), but with out any sucess.
* | js:if(%external% < 50) { "P99" } else { "F_NONE" } |
* | js:if(parseInt(%external%) < 50) { "P99" } else { "F_NONE" } |
* | js: if(parseInt(%external%) < 50) then P99; else F_NONE |
(Few more flavours of javascript)
Which is the (best) solution regarding Transformation files and assign single values based on a range values? Can I use Javascript If Stement?
Thanks you for your time
Regards
Jacues