“Did Jesus teach conditional forgiveness from God?”

What is repentance? Are we only forgiven if we repent? Are we only forgiven if we forgive others first? What’s the Matthew 18 parable of the unforgiving servant really about?