Well you can do that sort of thing with freemarker...
# suitescript
m
Well you can do that sort of thing with freemarker, sure, but I think the better solution is to make a custom field with a formula in it that provides the information that you want, and then just reference that field instead of the native one.