Skip to main content

System Functions

CategoryFunctionDescriptionExample
MathAbsValueReturns the absolute value of a number.AbsValue(-5) => 5
MathACosReturns the arccosine of a number.ACos(0.5) => 1.0472
MathAggregateSumCalculates the sum of all numbers in an array.AggregateSum([8, 12, 10]) => 30
MathASinReturns the arcsine of a number.ASin(0.5) => 0.5236
MathATanReturns the arctangent of a number.ATan(1) => 0.7854
MathCeilReturns the smallest integer greater than or equal to a number.Ceil(2.5) => 3
MathCosReturns the cosine of a number.Cos(0) => 1
MathExpReturns Euler's number raised to the power of a number.Exp(1) => 2.7183
MathFloorReturns the largest integer less than or equal to a number.Floor(2.8) => 2
MathLogReturns the natural logarithm (base e) of a number.Log(10) => 2.3026
MathPowerReturns the result of a number raised to a power.Power(2, 3) => 8
MathRandomGenerates a random number between 0 and 1.Random() => 0.8463 (random value)
MathRoundRounds a number to the nearest integer.Round(2.6) => 3
MathSinReturns the sine of a number.Sin(0) => 0
MathSqrtReturns the square root of a number.Sqrt(16) => 4
MathTanReturns the tangent of a number.Tan(0) => 0
StringCharAtReturns the character at the specified index in a string.CharAt("Hello", 1) => "e"
StringCharUnicodeReturns the Unicode value of the character at the specified index.CharUnicode("Hello", 1) => 101
StringConcatConcatenates two or more strings.Concat("Hello", " World") => "Hello World"
StringContainsChecks if a string contains another string.Contains("Hello", "ell") => true
StringEnds WithChecks if a string ends with a specified substring.Ends With("Hello", "lo") => true
StringEqualsIgnoreCaseCompares two strings, ignoring case differences.EqualsIgnoreCase("hello", "HELLO") => true
StringGetLengthReturns the length of a string.GetLength("Hello") => 5
StringIndexOfReturns the position of the first occurrence of a substring.IndexOf("Hello", "l") => 2
StringIsNullOrEmptyChecks if a string is null or empty.IsNullOrEmpty("") => true
StringLastIndexOfReturns the position of the last occurrence of a substring.LastIndexOf("Hello", "l") => 3
StringLowerCaseConverts a string to lowercase.LowerCase("Hello") => "hello"
StringReplaceReplaces all occurrences of a substring with another string.Replace("Hello", "H", "J") => "Jello"
StringSearchSearches a string for a specified value and returns the position.Search("Hello", "o") => 4
StringSplitSplits a string into an array of substrings based on a delimiter.Split("Hello World", " ") => ["Hello", "World"]
StringStartsWithChecks if a string starts with a specified substring.StartsWith("Hello", "He") => true
StringStrEqualsCompares two strings for equality.StrEquals("Hello", "Hello") => true
StringSubStringExtracts a substring from a string.SubString("Hello", 0, 2) => "He"
StringToStringConverts an object to a string.ToString(123) => "123"
StringTrimRemoves whitespace from both ends of a string.Trim(" Hello ") => "Hello"
StringUpperCaseConverts a string to uppercase.UpperCase("hello") => "HELLO"
DateTimeAddDateAdds a specified number of days to a date.AddDate(Today(), 5) => "2024-04-20"
DateTimeCalculateBusinessDaysCalculates the number of business days between two dates.CalculateBusinessDays("2024-04-01", "2024-04-10") => 7
DateTimeDateRetrieves the current date.Date() => "2024-04-15"
DateTimeDateDiffCalculates the difference between two dates in days.DateDiff("2024-04-10", "2024-04-01") => 9
DateTimeDateToISOStringConverts a date to an ISO string format.DateToISOString(Today()) => "2024-04-15T00:00:00.000Z"
DateTimeDateToUTCStringConverts a date to a string in UTC time zone.DateToUTCString(Today()) => "Mon, 15 Apr 2024 00:00:00 GMT"
DateTimeDateValueOfReturns the numeric value of a date.DateValueOf(Today()) => 177364800000
DateTimeDayReturns the day of the month for a specified date.Day(Today()) => 15
DateTimeDaysInMonthReturns the number of days in the month for a specified date.DaysInMonth("2024-02-01") => 29
DateTimeFormatDateFormats a date according to the specified format.FormatDate(Today(), "DD/MM/YYYY") => "15/04/2024"
DateTimeFull YearReturns the year portion of a date.FullYear(Today()) => 2024
DateTimeHoursReturns the hour portion of a date.Hours(Today()) => 0
DateTimeIsLeap YearChecks if a given year is a leap year.IsLeapYear(2024) => true
DateTimeMillisecondsReturns the milliseconds portion of a date.Milliseconds(Today()) => 0
DateTimeMinReturns the minute portion of a date.Min(Today()) => 0
DateTimeMonthReturns the month portion of a date.Month(Today()) => 4
DateTimeParseDateParses a date string into a Date object.ParseDate("2024-04-15") => Date object representing April 15, 2024
DateTimeSecondsReturns the seconds portion of a date.Seconds(Today()) => 0
DateTimeSubtractDateSubtracts a specified number of days from a date.SubtractDate(Today(), 5) => "2024-04-10"
DateTimeTimeReturns the time portion of a date.Time(Today()) => "00:00:00"
DateTimeTimeLocaleStrConverts a date to a string in the local time zone with locale-specific formatting.TimeLocaleStr(Today()) => "12:00:00 AM" (may vary based on locale)
DateTimeTimeZoneOffsetReturns the time zone offset in minutes for the current locale.TimeZoneOffset(Today()) => -240
DateTimeToDateOnlyStringConverts a date to a string with only the date portion.ToDateOnlyString(Today()) => "2024-04-15"
DateTimeTodayReturns the current date.Today() => "2024-04-15"
DateTimeToLocaleStringConverts a date to a string using the local time zone and locale-specific formatting.ToLocaleString(Today()) => "4/15/2024, 12:00:00 AM" (may vary by locale)
DateTimeToTimeOnlyStringConverts a date to a string with only the time portion.ToTimeOnlyString(Today()) => "00:00:00"
DateTimeUTCDateReturns the day of the month in UTC time zone.UTCDate(Today()) => 15
DateTimeUTCDayReturns the day of the week in UTC time zone.UTCDay(Today()) => 5
DateTimeUTCFull YearReturns the year in UTC time zone.UTCFullYear(Today()) => 2024
DateTimeUTCHoursReturns the hour in UTC time zone.UTCHours(Today()) => 0
DateTimeUTCMillisecondsReturns the milliseconds in UTC time zone.UTCMilliseconds(Today()) => 0
DateTimeUTCMinReturns the minutes in UTC time zone.UTCMin(Today()) => 0
DateTimeUTCMonthReturns the month in UTC time zone.UTCMonth(Today()) => 3
DateTimeUTCSecondsReturns the seconds in UTC time zone.UTCSeconds(Today()) => 0
DateTimeYearReturns the year of a specified date.Year(Today()) => 2024
ArrayAddItemToArrayAdds an item to an array.AddItemToArray([], "John") => ["John"]
ArrayAppendItemsAppends items from one array to another array.AppendItems(["John"], ["Doe", "Smith"]) => ["John", "Doe", "Smith"]
ArrayArrayContainsChecks if an array contains a specified item.ArrayContains(["John", "Doe"], "Doe") => true
ArrayClearClears all elements from an array.Clear(["John", "Doe"]) => []
ArrayConcatArrayConcatenates two or more arrays.ConcatArray(["John"], ["Doe"]) => ["John", "Doe"]
ArrayCopyArrayCreates a shallow copy of an array.CopyArray(["John", "Doe"]) => ["John", "Doe"]
ArrayGetIndexByItemReturns the index of the first occurrence of an item in an array.GetIndexByItem(["John", "Doe"], "Doe") => 1
ArrayGetLastIndexByItemReturns the index of the last occurrence of an item in an array.GetLastIndexByItem(["John", "Doe", "Doe"], "Doe") => 2
ArrayItemByIndexReturns the item at a specified index in an array.ItemByIndex(["John", "Doe"], 0) => "John"
ArrayJoinJoins all elements of an array into a string.Join(["John", "Doe"], ", ") => "John, Doe"
ArrayLengthReturns the number of elements in an array.Length(["John", "Doe"]) => 2
ArrayRemoveItemByIndexRemoves the item at a specified index from an array.RemoveItemByIndex(["John", "Doe"], 1) => ["John"]
ArrayRemoveItemsRemoves all occurrences of a specified item from an array.RemoveItems(["John", "Doe", "Doe"], "Doe") => ["John"]
ArrayReverseReverses the order of the elements in an array.Reverse(["John", "Doe"]) => ["Doe", "John"]
ArraySortSorts the elements of an array.Sort(["Doe", "John"]) => ["John", "Doe"]
ArraySliceItemsReturns a shallow copy of a portion of an array into a new array object.SliceItems(["John", "Doe", "Smith"], 1, 2) => ["Doe", "Smith"]
TypeConvertersParseDoubleParses a string representation of a floating-point number into a double-precision floating-point number.ParseDouble("3.14") => 3.14
TypeConvertersParseIntParses a string representation of an integer into an integer.ParseInt("10") => 10
TypeConvertersParseLongParses a string representation of a long integer into a long integer.ParseLong("10000000000") => 10000000000
TypeConvertersConvertToLongConverts a value to a long integer.ConvertToLong(100) => 100L
TypeConvertersConvertToIntConverts a value to an integer.ConvertToInt(10.5) => 10
DB UtilsGetBinaryValueRetrieves the binary value associated with the specified key from a database.GetBinaryValue("Employee", "ProfileImage") => [Binary Data]
DB UtilsGetBoolValueRetrieves the boolean value associated with the specified key from a database.GetBoolValue("Employee", "IsManager") => true
DB UtilsGetDateTimeValueRetrieves the datetime value associated with the specified key from a database.GetDateTimeValue("LeaveRequest", "StartDate") => "2024-04-15 09:00"
DB UtilsGetDoubleValueRetrieves the double value associated with the specified key from a database.GetDoubleValue("LeaveRequest", "DurationInDays") => 5.0
DB UtilsGetEnumValueRetrieves the enum value associated with the specified key from a database.GetEnumValue("LeaveRequest", "LeaveType") => "Annual"
DB UtilsGetIntValueRetrieves the integer value associated with the specified key from a database.GetIntValue("Employee", "YearsOfService") => 3
DB UtilsGetLongValueRetrieves the long integer value associated with the specified key from a database.GetLongValue("LeaveRequest", "EmployeeID") => 123
DB UtilsGetStringValueRetrieves the string value associated with the specified key from a database.GetStringValue("Employee", "FullName") => "John Doe"
MAPAddAdds a key-value pair to a map.Add("Employee", "123", "John Doe")
MAPContainsKeyChecks if a map contains the specified key.ContainsKey("Employee", "123") => true
MAPCountReturns the number of key-value pairs in a map.Count("Employee") => 10
MAPGetKeysRetrieves all keys from a map.GetKeys("Employee") => ["123", "124", ...]
MAPGetValueRetrieves the value associated with the specified key from a map.GetValue("Employee", "123") => "John Doe"
MAPRemoveRemoves the key-value pair with the specified key from a map.Remove("Employee", "123")
MAPRemoveAllRemoves all key-value pairs from a map.RemoveAll("Employee")
CacheAddItemToCacheAdds an item to the cache with the specified key and value.AddItemToCache("EmployeeCache", "123", {Name: "John Doe"})
CacheGetItemFromCacheRetrieves the item from the cache associated with the specified key.GetItemFromCache("EmployeeCache", "123") => {Name: "John Doe"}
CacheItemExistsInCacheChecks if an item exists in the cache with the specified key.ItemExistsInCache("EmployeeCache", "123") => true
CacheRemoveItemFromCacheRemoves the item from the cache associated with the specified key.RemoveItemFromCache("EmployeeCache", "123")
OthersAgeFromDOBCalculates the age from the date of birth.AgeFromDOB("1990-01-01")
OthersConsoleLogLogs a message to the console for debugging purposes.ConsoleLog("message")
OthersCopyObjectCreates a shallow copy of an object.CopyObject({Name: "John Doe"}) => {Name: "John Doe"}
OthersDecodeBase64Decodes a base64-encoded string.DecodeBase64("VGhpcyBpcyBhIGJhc2U2NC1lbmNvZGVkIHN0cmluZw==")
OthersEncodeBase64Encodes a string to base64.EncodeBase64("This is a base64-encoded string") => "VGhpcyBpcyBh..."
OthersGetConfigurationRetrieves configuration settings for the application.GetConfiguration("MaxLeaveDays") => 20
OthersGetByteDataRetrieves byte data from a specified source.GetByteData("https://example.com/image.jpg") => [byte data]
OthersGetGUIDGenerates a globally unique identifier (GUID).GetGUID() => "f47ac10b-58cc-4372-a567-0e02b2c3d479"
OthersGetRequestHeaderRetrieves the value of a specified header from an HTTP request.GetRequestHeader("Authorization") => "Bearer <token>"
OthersIfElseEvaluates a condition and returns one of two values based on the result.IfElse(IsEmployee, "Employee", "Guest")
OthersIsActivityCompletedChecks if an activity is completed.IsActivityCompleted("Task1") => true
OthersIsActivityCompletedSuccessfullyChecks if an activity is completed successfully.IsActivityCompletedSuccessfully("Task1") => true
OthersIsActivityFaultedChecks if an activity is faulted.IsActivityFaulted("Task1") => false
OthersParseParses a string into an object.Parse('{"Name": "John", "Age": 30}') => {Name: "John", Age: 30}
OthersStringifyConverts an object to a JSON string.Stringify({Name: "John", Age: 30}) => '{"Name": "John", "Age": 30}'
OthersGetHMACGenerates a Hash-based Message Authentication Code (HMAC) using a specified algorithm and key.GetHMAC("SHA256", "secretKey", "message")
OthersComputeSha256HashComputes the SHA-256 hash of a string.ComputeSha256Hash("message") => "6f9b9af3cd6e8b8a73c2cdced37fe9b..."
OthersGenerateSaltGenerates a random salt for cryptographic purposes.GenerateSalt() => "sJr7Bdh1kHm9Q6g4"
OthersSerializeXmlSerializes an object to XML format.SerializeXml({Name: "John", Age: 30})
OthersDeserializeXmlDeserializes XML data into an object.DeserializeXml("<Employee><Name>John</Name><Age>30</Age></Employee>")
OthersCompareObjectCompares two objects for equality.CompareObject({Name: "John"}, {Name: "John"}) => true
OthersGetObjectHashCodeGenerates a hash code for an object.GetObjectHashCode({Name: "John"}) => "a94a8fe5ccb19ba61c4c0873d3..."