good morning everyone, I am faced with a problem. I give my users the ability to create various dishes for their restaurant. During the compilation, I ask you to enter ingredients. Now my problem is that I wish the inclusion of ingredients was not mandatory.
However from another page I give the possibility to generate a pdf with a menu containing various dishes. In this menu I also insert the ingredients. Through the map, however, rightly, if it finds a dish without ingredients, an error is returned to me. How could I make sure that the cycle is performed only on dishes that contain ingredients, while on the others it simply returns me an empty string?
This topic was automatically closed after 70 days. New replies are no longer allowed.