Skip to content
Taiizor edited this page Mar 1, 2023 · 6 revisions

Length Class - Skylark.Helper Namespace

The Length class provides helper functions for working with string lengths and clamping integers.

Methods

Text

Returns the given string if its length is less than or equal to SMI.TextLength, or the provided backup string if it is longer.

string Text(string Value, string Back)

Parameter

Returns the given string if its length is less than or equal to SMI.ParameterLength, or the provided backup string if it is longer.

string Parameter(string Value, string Back)

Clamp

Clamps the given integer between the minimum and maximum values.

int Clamp(int Value, int MinValue, int MaxValue)
Clone this wiki locally