public static void Run()
{
// ExStart:FormulaWithBooleanValues
Project project = CreateTestProjectWithCustomField();
// Set formula for extended attribute
project.ExtendedAttributes[0].Formula = "[Critical]-[Marked]+4+[Active]-Not [Active]";
// Print value of extened attribute
Task task = project.RootTask.Children.GetById(1);
Console.WriteLine("Formula with boolean values: " + task.ExtendedAttributes[0].Value);
// ExEnd:FormulaWithBooleanValues
}