scmJS docs

Command the Least

True when the player the trigger runs for has fewer units of the type than any other player.

Condition 16 · Command the Least(Unit);

Argument Takes Stored in the condition
Unit a unit type, or one of the unit classes bytes 12–13
Command the Least("Buildings");