# fsVarsGetLVarId The **fsVarsGetLVarId** function can be used to get an existing `LVar`.   ##### Syntax ``` wasm FsLVarId fsVarsGetLVarId( const char* name ); ```   ##### Parameters {{< table-wrapper >}} | Parameters | Description | |------------|---------------------------| | `name` | The name of the variable. | {{< /table-wrapper >}}   ##### Return Values The function returns the ID associated with the given name. If the given name has *not* been registered, the function will return `FS_VAR_INVALID_ID`. If an error occurred, the function will return `FS_VAR_INVALID_ID`.   ##### Example ``` wasm FsLVarId lVarId = fsVarsGetLVarId("TOTO"); // return FS_VAR_INVALID_ID if "TOTO" doesn't exists else its id ```