# check_named_variable {{< callout context="note" title="NOTE" icon="outline/bulb" >}} Deprecated. Use `fsVarsGetLVarId` instead. {{< /callout >}}   The **check\_named\_variable** function retrieves the ID number of a named local variable, if it exists.   ##### Syntax ``` wasm ID check_named_variable( PCSTRINGZ name ); ```   ##### Members {{< table-wrapper >}} | Parameters | Description | |------------|------------------------------| | `name` | Specifies the variable name. | {{< /table-wrapper >}}   ##### Return Values The function returns an ID number if the variables exists, or -1 if it does not.   ##### Remarks Local variable names are case-insensitive.