handle booleans for print and assignment