Help! Variable Issue

Pardon me if this is in wrong place, I am new here xD

Variable.PNG

I am trying to make variable check. First the script get number of item ID 1 and sets it as variable.

Conditional.PNG

Then conditional branch checks it.

Error.PNG

But it ends like this in test.

What's gone wrong here? Thank you in advance!
There should be a command under game data to directly get the number of items when you assign the variables. I'd use that instead.
Simple is the answer! Thank you, I feel so stupid.
also, the script you used is for MV, not for VXA which use probably $gmae_Party or $game_party. something else behind 🙂 Make sure you take the correct scriptcalls for the correct engine 😀
For Ace, your script call should be $game_party.item_number($data_items[1])

Original thread: https://forums.rpgmakerweb.com/threads/help-variable-issue.117713/