Could you kindly note that when used as a variable, UI_add_cont_items apparently returns 1 if it failed and 0 if it succeeded, so if (variable)
needs to be if (!variable)
to confirm the item creation worked. You can see an example in the SI berry bush code: shape#(0x3FD)
This isn't currently listed, but it did trip me up tonight.