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

C/C++ API Documentation | 2025.1

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

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

Virtual? | No |
Class | `StrDict` |
Arguments | `int i` | the index of a variable in the `StrDict`
| `StrPtr &var` | the name of the variable at that index, if any
| `StrPtr &val` | the value found at that index, if any
Returns | `int` | the value, or zero if no variable found

## Notes

This method is typically used when iterating through a `StrDict`.

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

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

Your search for returned results