Aspose.Tasks.Examples.CSharp.WorkingWithFormulas.FormulaWithBooleanValues.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        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
        }