The Boolean object represents a true or false value and includes Boolean functions to transform and compare, and a function to convert to a string type.
Name and Parameters | Description | Return Type | Usage Examples | |
---|---|---|---|---|
And(boolean value) | Returns logical AND of current boolean value with specified value | Boolean | $Build.IsFeatureBranchBuild.And(%Deploy%)$ | False |
Or(boolean value) | Returns logical OR of current boolean value with specified value | Boolean | $Build.IsFeatureBranchBuild.Or(%Deploy%)$ | True |
Not() | Negates current boolean value | Boolean | $Build.IsFeatureBranchBuild.Not()$ $Build.IsFeatureBranchBuild.And(%Deploy%).Not()$ $Build.IsFeatureBranchBuild.Not().And(%Deploy%)$ |
True True True |
ToString() | Parses current boolean to a string, allowing string operations and functions | String | $Build.IsFeatureBranchBuild.ToString().ToLower()$ | "false" |