Variant

Description

A class that wraps multiple data types, especially for scripts that are converted from SBM AppScript to SBM ModScript.

The following data types can be represented by Variant:

Constructors

Operators

Copy operators:

Math operators:

Comparison operators:

Note: Variant can compare strings to numbers such as "1"==1.

Other operators:

SBM AppScript conversion operators:

Methods

Conversion methods:

Note: Variant can be implicitly converted to and from every data type that it can internally represent. (Variant will not be implicitly converted to string, but can be explicitly converted using to_string().

Related Topics

Object Types

Working with Application Objects