This snippet includes a preference that is of type `string` but represents if something is enabled or not. The value is set to "Disabled" or some other string. Here anything not equal to the literal string `Disabled` is truthy. Then there's the inversion with `!`. Followed thereafter by a function with "do stuff" as its name. ```csharp var dragonOK = true; if (!globals.Prefs.dhaEnabled.Equals("Disabled")) { globals.myParent.PutMessageOnMessageBoard("Buidling DHA CSV file."); dragonOK = doDHADragonStuff(); } ``` Later a similar mechanic is followed by the evaluation of a boolean preference, mixing conventions. ```csharp if (globals.Prefs.dhaEnabled.Equals("Disabled")) { if (!globals.Prefs.UseAcamlReport) { //... } } ``` Even more interestingly, and dangerously, this preference is compared to the string `All Data`. Making the initial interpretation (if it should be boolean), false. ```csharp else if (globals.Prefs.dhaEnabled.Equals("All Data")) ``` _This is a page in the collection of [[Chip Overflow/Willies|snippets that give me the willies]]_