I think the problem is in the first menu, you have to set menu properties (Exit, next & back - Optional). And in the second (I believe) menu you show menu and right after that you destroy it.
But I don't fully understand what do you exactly mean, but I think you want to check if an x specific item exists in menu (right?)
Then the best way to do that is when you add items to menu (for i loop) you should check if item[i] has title/text/id you want, if yes, make custom (global - in the begging of the code) boolean and set it to true. And if menu has x item (true boolean) continue your code.
Last edited by thEsp; 01-05-2019 at 14:40.
Reason: .