Hi guys, I am a newbie in CloverETL.
Can anyone help me with a basic conversion from boolean to string in the transform() procedure?
where:
$in.0.isClient is bool (true, false)
$out.0.isClient is string ("T" for true and "F" for false)
$out.0.isClient = ???
I need the opposite of str2bool.
I believe it must be quite ovious, but I really didn't find out...
Thanks in advance!
Can anyone help me with a basic conversion from boolean to string in the transform() procedure?
where:
$in.0.isClient is bool (true, false)
$out.0.isClient is string ("T" for true and "F" for false)
$out.0.isClient = ???
I need the opposite of str2bool.
I believe it must be quite ovious, but I really didn't find out...
Thanks in advance!
-
You may use something like this:
$out.0.isClient = $in.0.isClient ? "True" : "False" ;
or
$out.0.isClient = iif($in.0.isClient,"True","False");
Please sign in to leave a comment.
Comments 1