Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameDescriptionParametersReturn TypeUsage Example
AppendReturns a new string with the specified string added to the endstring valuestring$Configuration.Name.Append(" ").Append($Build.Version$)$"Build Config 1.2.3" (given "Build Config", and "1.2.3")
Contains

boolean

InsertReturns a new string in which a specified string is inserted at a specified index position in the current text

integer startIndex, string value

string

LengthReturns the number of characters in the text
integer

PadLeftReturns a new string that right-aligns the characters in the current text by padding them on the left with a specified character, for a specified total length
Stringstring


PadRightReturns a new string that left-aligns the characters in the current text by padding them on the right with a specified character, for a specified total length
Stringstring


RemoveReturns a new string in which a specified number of characters in the current text beginning at a specified position have been deleted
Stringstring


ReplaceReplaces all occurrences of the first specified string in the current string with the second specified string
Stringstring
$Configuration.Name.Replace("v.", "version" )$"Test Config version 10" (given "Test Config v. 10")
Split

string array

SplitWithQuotes

string array

Substring

string

ToBoolean

boolean

ToLowerConverts a string to lowercase
Stringstring
$Source.RepoName.Branch.ToLower$"version 1.5" (given "Version 1.5")
ToNumber

number

ToUpperConverts a string to uppercase
Stringstring
$Project.Name.ToUpper$"PROJECT X" (given "Project X")
TrimStart

Stringstring


TrimRemoves all leading and trailing occurrences of whitespace or the characters in the string provided
Stringstring

$Build.Version.Trim$

$Build.Version.Trim(".,")$

"a b c d" (given " a b c d  ")

"a.b.c.d" (given ",a.b.c.d.")

TrimEnd

Stringstring
Contains


Number Functions

ToNumber
Name
ToBoolean
Description
Substring
Parameters
Split
Return Type
SplitWithQuotes
Usage Examples
AddAdds the specified number to the current number and returns the result
number

CeilingReturns the smallest integer greater than or equal to the current decimal number
number

DecrementDecrements the current number by one
number

DivideDivides the current number by the specified number and returns the result
number

FloorReturns the largest integer less than or equal to the current decimal number
integer

IncrementIncrements the current number by one
number

IntegerDivideDivides the current integer by the specified integer and returns an integer result
integer

ModulusReturns the remainder after dividing the current number by the specified number
number

MultiplyMultiplies the current number by the specified number and returns the result
number

RoundRounds the current decimal number to the nearest integer
integer

SubtractSubtracts the specified number from the current number and returns the result
number

ToStringParses current number to a string, allowing string operations and functions
string



















DateTime DateTime Functions

NameDescriptionParametersReturn TypeUsage Examples
FormatFormats a date or time value using standard or custom .Net formatting strings
String$Server.Now.Format("hh:mm")$"23:55" (given the date time "31/12/2000 23:55:333")