set Boolean value true/ false through source script if the value is yes/no in the data upload sheet

MonishramP
Tera Contributor

answer = (function transformEntry(source) {

if (source.u_keycontrol.toLowerCase() == "yes") {

return true;

if (source.u_keycontrol.toLowerCase() == "no") {

return false;

})(source);



1 REPLY 1

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

I'm assuming that the script is not working, so try this instead

answer = (function transformEntry(source) {
if (source.u_released.toString().toLowerCase() == "yes") {
return true;
if (source.u_released.toString().toLowerCase() == "no") {
return false;
})(source);

 

-Anurag