Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2026.1

# StrDict::GetVar( const char *, Error * )

Return the value of the specified variable, or `NULL` if not defined.

Virtual? | No |
Class | `StrDict` |
Arguments | `const char *var` | the name of the variable to look up
| `Error *e` | an error message indicating that the required parameter `var` was not set
Returns | `StrPtr *` | the value, or `NULL` if not defined

## Notes

For the most part, all of the `GetVar()` methods are equivalent.

For details, see `StrDict::GetVar( const StrPtr & )`

Your search for returned results