Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: Tim MeagherHey,
I could be wrong on this but I'm pretty certain the replace text node is just doing a textual substitution, so for NULL values, or values with no text, then there is nothing to replace.
In any case, I would recommend that you just do this using a filter node.
It seems like that would be a much better option.
With the brainscript something like:
newCallingNumber = 'Calling_number20'
if newCallingNumber.isNull() or newCallingNumber.equals("") then {
newCallingNumber = "0"
}
emit *
override emit newCallingNumber as "Calling_number_20"
Bear in mind, I haven't tested that code, so it might be a little off.