Handle > and <