Outputs values according to type.