conditional branch script for items

Hola guys,

Im looking for the right script to use in a conditional branch to see if the player has enough of a single, or multiple item(s).
Ive looked at the standard option; but its lacking in mentioned above aspects.
$gameParty._items[itemId] >= right amount
How I usually do that is I would use "Control Variables" go to game data > Item > select the item. Name the variable something like "amount of [Item]" and make sure its on "set" under operation. Then hit okay and make a Conditional Branch for the variable you made and set it to how much of that item they need using the "constant" number.
@Poryg exactly what i was looking for thanks!
@isyrium for the situation i was asking this for porygs solution is more effective. BUT, the method you told me I wasnt aware of either, and it will help me out for another problem i was having. So, thanks to you aswell!

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-script-for-items.85445/