You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 ParametersDescriptionReturn TypeUsage Examples
And(boolean value)Returns logical AND of current boolean value with specified valueboolean$Build.IsFeatureBranchBuild.And(%Deploy%)$False
Or(boolean value)Returns logical OR of current boolean value with specified valueboolean$Build.IsFeatureBranchBuild.Or(%Deploy%)$True
Not()Negates current boolean valueboolean

$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 functionsstring$Build.IsFeatureBranchBuild.ToString().ToLower()$"false"





  • No labels