uCalc API Version: 2.1.3-preview.2 Released: 6/16/2026

Warning

uCalc API Preview Release Notice:The documentation describes the intended behavior of the API. The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.

Compare

Method

Product: 

String Library

Class: 

String

Compares two strings

Syntax

Compare(string, int, int, int)

Parameters

OtherString
string
The other string to compare with
IndexA
int
(Default = 0)
Starting point of first string
IndexB
int
(Default = 0)
Starting point of next string
Length
int
(Default = -1)
Length

Return

Comparison

Returns bigger than, equal, or less than (Comparison enum)

Remarks

Compares two strings

Examples