Hello, I have an issue, with “decide whether” not recognizing a custom kind :
Storage is kind of thing.
Storage has a good called content. The content of storage usually is vide.
Storage has a number called quantity. The quantity usually is 0.
Storage has a number called price. The price usually is 0.
The description of storage is "Some storage containing [quantity] [content] at [price]$ each".
To decide whether (stuff - a storage) can sell (quantity - a number) of (good - a good):
if content of stuff is good and quantity of stuff >= quantity, decide yes;
decide no;
Doing this sends me the following error message :
While, if I change the code as bellow, it compile correctly.
Storage is kind of thing.
Storage has a good called content. The content of storage usually is vide.
Storage has a number called quantity. The quantity usually is 0.
Storage has a number called price. The price usually is 0.
The description of storage is "Some storage containing [quantity] [content] at [price]$ each".
StoreIn is a king of storage.
To decide whether (stuff - a storein) can sell (quantity - a number) of (good - a good):
if content of stuff is good and quantity of stuff >= quantity, decide yes;
decide no;
Does anyone know why ?