# register_named_variable {{< callout context="note" title="NOTE" icon="outline/bulb" >}} Deprecated. Use `fsVarsRegisterLVar` instead. {{< /callout >}} The **register\_named\_variable** function registers a local variable name.   ##### Syntax ``` wasm ID register_named_variable( PCSTRINGZ name ); ```   ##### Members {{< table-wrapper >}} | Parameters | Description | |------------|------------------------------| | `name` | Specifies the variable name. | {{< /table-wrapper >}}   ##### Return Values The function returns an ID. If the named variable already exists, its existing ID will be returned. If it does not exist, a new registered variable is created.   ##### Remarks Local variable names are case-insensitive. The value of the variable is set to zero, and the units to `UNITS_UNKNOWN`, on creation.