# P_pollwho
## Syntax:
@pollwho**({group}, {var}, {mode}, [threshold])**
## Use Case:
Returns the session name(s) matching a criteria across all sessions in the group expression. The returned name can be used directly in $Name.var cross-session access.
## Modes:
- **min** â€” Session with the lowest numeric value.
- **max** â€” Session with the highest numeric value.
- **med** â€” Session closest to the median value.
- **below** â€” CSV of sessions below the threshold (requires 4th arg).
- **above** â€” CSV of sessions above the threshold (requires 4th arg).
- **match** â€” CSV of sessions whose value equals the 4th arg (case-insensitive).
## Arguments:
- **{group}**: A group expression (e.g., ALL, A+B-C+Jimmy).
- **{var}**: Variable name or braced expression.
- **{mode}**: One of min, max, med, below, above, match.
- **[threshold]**: Required for below, above, and match modes.
## Examples:
1. **@pollwho(ALL, myhp, min)** â†’ "Baldy"
2. **@pollwho(A, myhp, below, 200)** â†’ "Baldy,Blindy"
3. **@pollwho(ALL, stance, match, sitting)** â†’ "Baldy"
4. **cast heal @pollwho(Tanks, myhp, min)** â†’ heals the lowest-HP tank
5. **@pollwho(A+B-C, {@math($myhp * 100 / $maxhp)}, below, 50)** â†’ who in A+B (not C) is below 50% HP
## See Also:
poll, pollmin, pollmax, pollavg, polltotal, G_CrossSessionData
