- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]
===== ISHQPRESENT =====
^Arguments^Result^Notation^
| none | True/False | [ - b1 ] |
=== Description ===
Pushes 1 (true) to the stack if one or more HQs are present on the map. Pushes 0 (false) otherwise.
=== Examples ===
# Says in the debug window whether one or more HQ's have been found.
if(ishqpresent)
"At least one HQ found."
else
"No HQ's found."
endif
trace
stack.Push(new Data(GameSpace.instance.headquartersShips.Count == 0 ? 0 : 1));