---
id: reflect-prop
name: Reflect.prop
category: reflect
kind: namespace-method
tokens: Reflect.prop
sig: Reflect.prop(name) -> int
tip: The property id for a property name, or -1 if unknown.
order: 1
ns: Reflect
member: prop
---
Resolves a property name to its stable id, or -1 if no such property exists. The id is what every other Reflect.* (and Query) call takes. Same as World.prop_id, under the reflection namespace.
Parameters:
- `name` — the property name
```ludic
program Demo {
property Health { hp: int = 0 }
model Unit { Health }
entry {
let H = Reflect.prop("Health")
print(H)
}
}
```