外に出ると

when you go outside

→ 外
phrase Rare #40,038
when you go outside Uses と to describe what happens when or whenever someone goes outside. It can also mean “if you go outside” when describing a predictable result.
JA: 外に出ると、風が強かった。
EN: When I went outside, the wind was strong.

外に出ると寒さでぞくぞくした

When I went outside, I shivered from the cold.

おれは昼間外に出るとヤバい

I’m screwed if I go outside during the day.

— マルコムX (1992)

その外に出ると得点を失う

If you go outside of it, you lose points.

— ダンガル きっと、つよくなる (2016)

ドアは外に出ると自動的に閉まります

The door closes automatically when you go outside.