Need help with Variable Operations

Hi guys. I'll make this short and simple.

My player needs to collect 4 Scrap Metals. Before he can proceed to the next map, there will be a validation. The text goes something like this.

"I have [ ] Scrap Metals."

if ScrapMetalsQuantity == 4,

"I have enough Scrap Metals!"

else

"I need " + (4 - ScrapMetalsQuantity) + "more."

How can I implement that in my text window? I don't know if the solution is very simple and I just couldn't get it. I think I'm missing the logic. I don't see a way to perform operations while displaying a text and I don't see a way to assign values to Variables using other variables with operations.

I am familiar with programming logic so plugins and javascript syntax advice is welcome. Any help is appreciated. Thanks!
Variable 1 'set' to quantity of Scrap Metal (Game data -> Item)

"I have \v[1] Scrap Metals." (You could add a 'if v1 = 1' condition to make sure plurals are correct)

Condition "If Variable 1 >= 4" -> "I have enough!"

Else, Variable 2 'set' 4, Variable 2 'sub' Variable 1.

"I need \v[2] more."
Variable 1 'set' to quantity of Scrap Metal (Game data -> Item)

"I have \v[1] Scrap Metals." (You could add a 'if v1 = 1' condition to make sure plurals are correct)

Condition "If Variable 1 >= 4" -> "I have enough!"

Else, Variable 2 'set' 4, Variable 2 'sub' Variable 1.

"I need \v[2] more."

Jeez, it was that simple, huh? Thank you so much. My brain hurts. I knew I should have taken a break.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-variable-operations.83529/