Skip to content

TEGS Scripting: Convert Library

Jon Thysell edited this page Mar 19, 2022 · 2 revisions

The Convert library provides constants and functions relevant to converting data types into other data types.

Constants

N/A

Functions

ToBoolean

Converts a specified value to an equivalent Boolean value.

Convert.ToBoolean(Boolean)

Boolean Convert.ToBoolean(Boolean value)

Parameters

value Boolean

The specified value.

Returns

Boolean

value is returned unchanged.

Convert.ToBoolean(Integer)

Boolean Convert.ToBoolean(Integer value)

Parameters

value Integer

The specified value.

Returns

Boolean

true if value is not zero; otherwise, false.

Convert.ToBoolean(Double)

Boolean Convert.ToBoolean(Double value)

Parameters

value Double

The specified value.

Returns

Boolean

true if value is not zero; otherwise, false.

Convert.ToBoolean(String)

Boolean Convert.ToBoolean(String value)

Parameters

value String

The specified value.

Returns

Boolean

true if value equals Boolean.TrueString, or false if value equals Boolean.FalseString.

Exceptions

value is not equal to Boolean.TrueString or Boolean.FalseString.

ToDouble

TODO

ToInteger

TODO

ToString

TODO