03-18-2009 07:18 AM
03-18-2009 07:40 AM - edited 03-18-2009 07:41 AM
It should look like this:
03-18-2009 07:45 AM
03-18-2009 08:58 AM - edited 03-18-2009 08:58 AM
BME genuis wrote:
So does that mean Case 9 is my default case? Then, why can't I see it marked as default when I right click the case list?
No. You have to explicitly select which case is the default case. Look, we're going round and round here. This is explicitly explained in the manual. Have you actually opened it? I dug up the 5.0 manual. Here is the information on page 19-14:
Case structures choose a single subdiagram, or case, to execute based on an
input value, which is called the selector. With Case structures, you can do
the following.
- Specify lists and ranges of selector values that correspond to a case.
- Use an integer, a boolean, a string or an enum type as a selector.
- Specify a default case (or action).
- Sort cases based on the first selector value
Here is the picture on page 19-17:
and here is the text on page 19-18:
The Make This Case Default item in the pop-up menu specifies a
particular case to execute if the selector value is not listed in the Case
structure. The word Default is listed in the selector value at the top of the
Case structure. You must specify a default case for a Case structure if it
does not contain selectors for every possible selector value.
I'm sorry if I sound flippant, but I honestly don't know how to make it clearer than that.
03-18-2009 09:04 AM
Great, well you already gave me the right answer.
If the case structure was driven by a numeric value, and you sent a value larger than the largest value, then the last case would be executed. (when there is no default case specified)
Thanks so much!