# fsVarsRegisterLVar The **fsVarsRegisterLVar** function can be used to get or create an `LVar`.   ##### Syntax ``` wasm FsLVarId fsVarsRegisterLVar( const char* name ); ```   ##### Parameters {{< table-wrapper >}} | Parameters | Description | |------------|-------------------------------| | `name` | The name of the new variable. | {{< /table-wrapper >}}   ##### Return Values The function returns the ID associated with the given variable name. If the given name has already been registered, the function will return the ID of the already existing `LVar`. If an error occurred, the function will return `FS_VAR_INVALID_ID`.   ##### Example ``` wasm FsLVarId lVarId = fsVarsRegisterLVar("TOTO"); ```