# Variant Functions Reference
Functions for working with the dynamic `Variant` type, which can hold data of any other type.
| Function | Parameters | Description |
| :--- | :--- | :--- |
| `VarClear` | `var v` | Clears variant and sets it to Unassigned. |
| `VarIsNull` | `v` | True if variant is Null. |
| `VarIsEmpty` | `v` | True if variant is Unassigned. |
| `VarIsClear` | `v` | True if variant is Null or Unassigned. |
| `VarIsArray` | `v` | True if variant contains an array. |
| `VarIsStr` | `v` | True if variant contains a string. |
| `VarIsNumeric` | `v` | True if variant contains a number. |
| `VarType` | `v` | Returns the internal type code of the variant. |
| `VarAsType` | `v, type` | Converts variant to a specific type. |
| `VarToStr` | `v` | Converts variant to string (handles Null/Unassigned safely). |
| `VarToIntDef` | `v, def` | Converts to integer or returns default. |
| `VarToFloatDef` | `v, def` | Converts to float or returns default. |
Variant Functions Reference
Functions for working with the dynamic Variant type, which can hold data of any other type.
Function
Parameters
Description
VarClear
var v
Clears variant and sets it to Unassigned.
VarIsNull
v
True if variant is Null.
VarIsEmpty
v
True if variant is Unassigned.
VarIsClear
v
True if variant is Null or Unassigned.
VarIsArray
v
True if variant contains an array.
VarIsStr
v
True if variant contains a string.
VarIsNumeric
v
True if variant contains a number.
VarType
v
Returns the internal type code of the variant.
VarAsType
v, type
Converts variant to a specific type.
VarToStr
v
Converts variant to string (handles Null/Unassigned safely).