- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Yes, I would test against null.
Also maybe consider having a sixth option which has a blank display value. That way if the user selects an option from the dropdown and then changes their mind, they can select the blank, effectively clearing the dropdown. If you do this, you would need to test against null and the bound value of the blank.
Something like:
if (AssessE.rawValue == null || AssessE.rawValue == "6")
{
// don't include E in the calculation
}
else
{
// do include E in the calculation
}
Good luck,
Niall
Views
Replies
0 Likes
Total Likes