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

C/C++ API Documentation | 2025.2

# StrDict::GetVar( const StrPtr &, int )

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

Virtual? | No |
Class | `StrDict` |
Arguments | `const StrPtr &var` | the name of the variable to look up
| `int x` | appended to the variable’s name
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