Hi
If I call str2enum, e.g like this,
NoYes ny;
ny = str2enum(ny, 'badvalue');
what value will ny get? I can see in the debugger that it does not have Yes, not No. It is just blank. But I have not found a working way to identify this in a if clause.
(!ny) does not work
(ny==null) does not work
Any ideas?
*This post is locked for comments