Printing a student's Preferred Name

This code will print a student's preferred name IF it's not blank, otherwise it will print their first name. This has been tested in object reports AND mailing labels.

^(preferred_name;if.blank.then=^(first_name))

So, if the kid's name is Joseph but his preferred_name field (on Modify Info page) is set to "Joey", it will print Joey. If his preferred_name field is blank, it will print Joseph.