AI OnAI Off
You're trying to convert the property value into a string, if that fails (which it will to for a checkbox property), an empty string is returned. Try something similar to this:
bool showNewsFA = StartPage["NewsFocusArea"] != null
? (bool)StartPage["NewsFocusArea"] : false;
I tried some different ways and I got this to work also
bool showNewsFA = StartPage["NewsFocusArea"] as bool? ?? false;
I use this code to check if a value exists and has a value
The problem I'm having with some of these is that they return an empty string even though the property exists and has a value. How can that be?
In this case I'm checking for a property of type checkbox if that has anything to do with the problem?