The value of X is determined when the ability resolves. It won’t change later, even if the number of Elves you control changes.

Artwork
Loading artwork…
Elvish Branchbender
Duel Decks: Elves vs. Inventors · #6 · EN
Nonfoil—Foil—
Card rules
2/2
"How do the vinebred feel? Fah! We do not ask the puppet how it feels when the puppeteer bids it dance."
Common · Illustrated by Ralph Horsley
Format legality
Commander Legal
Duel Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
PreDH Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Old School Not Legal
Pioneer Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
If you control no Elves when the ability resolves, the Forest will become a 0/0 creature and be put into the graveyard. However, since Elvish Branchbender is itself an Elf, the Forest will usually be at least a 1/1.
A noncreature permanent that turns into a creature can attack, and its
abilities can be activated, only if its controller has continuously controlled that permanent since the beginning of their most recent turn. It doesn’t matter how long the permanent has been a creature.