Dear all,

sorry for botherin, but I got stucked trying to manipulate some fields while pulling user entries from a CSV file.

In the File, I have a field "passwd" containing values 0 and 1. I want to map that into a field "isActive" of type boolean.

So, I tried to create a Pull Transformer like:
if (value == 1) { return true;} else { return false;}

What did I missed? Any help greatly appreciated!

Best regards,

Rainer Herbst
IT-Service
Phone: +49 331 7499-257
e-mail: [email protected]
https://www.aip.de

-----------------------------------------------------------------------------------------------
Leibniz-Institut für Astrophysik Potsdam (AIP)
An der Sternwarte 16, 14482 Potsdam

Vorstand: Prof. Dr. Matthias Steinmetz, Matthias Winker
Stiftung bürgerlichen Rechts
Stiftungsverzeichnis Brandenburg: 26 742-00/7026
-----------------------------------------------------------------------------------------------

Reply via email to