I'm stuck on one of the methods I have to write. I try to write the method for disabling a button when the product is out of stock. However nothing I try is working. I have to following lines as a pseudocode:
// getting the information about the stocking (how many products are in stock, listed in the controller class)
// making an if statement:
// if 0 products in stock than button should be disabled
// else button should be enabled
But I don't know how to continu. The other exercises (so also the finishing ones) all work. Only this one doesn't work out.