と思ったら

I thought (that)…, no sooner … than; just when …, immediately …

→ と
phrase Uncommon #17,305
I thought (that)… Used to state what someone thought or concluded; the next clause often gives the actual result.
JA: 新しいアイドルかと思ったら、ヘアスタイル変えただけだった。
EN: I thought it was a new idol, but they’d only changed their hairstyle.

誰かと思ったらバルトロメオ!

I wondered who it was—Bartolomeo!

— ライフ・イズ・ビューティフル (1997)

母親があなたが理解できると思ったらこれは彼女が言っただろう

If your mother thought you could understand, this is what she would have said.

— お嬢さん (2016)

嘘だと思ったら覗いてみな

If you think I’m lying, take a look.

— Sanjuro (1962)

退屈だと思ったら

If you think it's boring

— REC / レック (2007)

でも母親の名前がメアリー知り合いだと思ったら別人だったんだ

But I thought the mother named Mary was someone I knew, only to find out she was a completely different person.

— アバウト・タイム ~愛おしい時間について~ (2013)

おお誰かと思ったら!

Oh, I was wondering who it was!

— ピエロがお前を嘲笑う (2014)

新しいアイドルかと思ったら、ヘアスタイル変えただけだった。

I thought it was a new idol, but they had just changed their hairstyle.

男らしく言おうと思ったら、どう言えばいいの?

How should I say it if I want to sound manly?

誰かと思ったら宗ちゃんね

I was wondering who it was—it's you, So-chan.

— 崖の上のポニョ (2008)

無料バスかと思ったら、お金がいったよ。

I thought the bus was free, but I had to pay.

嘘だと思ったら訊いてみな

If you don’t believe me, ask.

— Sanjuro (1962)

phrase Rare #32,517
no sooner … than; just when …, immediately … Connects one event to another that happens right away, often unexpectedly.
JA: 帰ってきたと思ったら、すぐに別の仕事に向かった。
EN: No sooner had he returned than he headed off to another job.

帰ってきたと思ったら、すぐに別の仕事に向かった。

Just when I thought he had come back, he immediately left for another job.

少しだけ休んで電話がかかって来たと思ったらすぐに出かけていました

I had only rested for a little while when I got a phone call, and before I knew it, I was out again.

— Article 15 (2019)

彼女がその本を読み始めたと思ったらすぐに、誰かがドアをノックした。

As soon as she started reading the book, someone knocked on the door.