# delegate
## Syntax:
/delegate **{target}** **{command}**
## Use Case:
Delegates the execution of a command to one or more active sessions resolved from a group expression.
## Arguments:
- **{target}**: A group expression specifying the session(s) to send the command to. 
- **{command}**: The command text to be executed in the target session(s).
## Group Math:
Target expressions are evaluated from left-to-right to build the set of target sessions. Terms are joined using "+" (union, optional for the first term) and "-" (difference) operators.

Each term name is resolved with the following priorities:
1. **ALL**: Special keyword targeting every active session.
2. **Session Name**: Explicit session matching the target string.
3. **Group Name**: All sessions belonging to that delegation group (see `/delegation`).
## Examples:
1. **/delegate healers cast 'heal' jimmy**
   Sends `caste 'heal' jimmy` to all active sessions in the `healers` group.
2. **/delegate ALL-tanks shout Run!**
   Sends `shout Run!` to all sessions except those in the `tanks` group.
3. **/delegate Jimmy+Suzie nod**
   Sends `nod` to both the `Jimmy` and `Suzie` sessions.
## See Also:
cycle, delegation, sendall, sendothers
