This project has moved and is read-only. For the latest updates, please go here.

Optional attributes

Jul 6, 2012 at 11:44 AM

Firstly, thanks for the great work!

I'm having a problem with optional attributes. This may not be an issue with CSD but with the underlying Configuration subsystem (or my understanding of it!).

I have an optional boolean attribute and I want to know whether it has been supplied or not in the config file. If it hasn't, then I want my code to default it to true. I don't see any way to see if the attribute exists.

Any help much appreciated!

Jul 12, 2012 at 9:34 PM

You can set default values for attributes in the CSD designer. If the attribute is not found in your config file, the default value will be used. Was this the behavior that  you wanted?