|
There are 2 values: inventory quantity value (num) and out-of-stock quantity value (outnum). Different operations are performed according to the difference between the two data. The statement is as follows:
a = num-outnum
choose case a
case 0
// perform all out of stock and delete entries in the inventory table
case num
// Prompt for data input greater than 0
case> 0
// Exit the warehouse normally, and update the entries in the inventory table
case <0
// Prompt input data cannot be greater than total inventory
end choose
This statement always prompts a syntax error during execution, please advise. |
|