If Burn from Within doesn’t deal damage to the target creature (perhaps because that damage was prevented or X is 0), neither additional effect will apply. It won’t lose indestructible, and it won’t be exiled instead of dying that turn.

Artwork
Loading artwork…
Burn from Within
Shadows over Innistrad · #148 · EN
Nonfoil—Foil—
Card rules
Burn from Within deals X damage to any target. If a creature is dealt damage this way, it loses indestructible until end of turn. If that creature would die this turn, exile it instead.
Rare · Illustrated by James Ryman
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
You can target a creature that doesn’t have indestructible with Burn from Within. It will still be exiled if it would die this turn.
The damaged creature will be exiled if it would die for any reason that turn, not just if it dies due to damage from Burn from Within.