Step 1: Condition for a pair of coincident lines.
For the equation \( ax^2 + hxy + by^2 = 0 \) to represent a pair of coincident lines, the condition is \( h^2 = 4ab \).
Step 2: Conclusion.
Thus, the condition for the equation to represent a pair of coincident lines is \( h^2 = 4ab \), corresponding to option (B).