Thank you for your help. This suggestion was also made by Jim Dehner (see above). The calculated field errors are gone, but there is no output. Not sure but might because of the missing "true" statement.