<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#particles|Particles]] ===== GetAllConnectedBonds ===== ^Arguments^Result^Notation^ | pid | bid* count | [ int - int* int] | === Description === Gets all bonds that are connected to this particle in a chain. All the bond ids are pushed on top of the stack, with the total count pushed on top of it, similar to [[prpl:getcoreswithvar|GETCORESWITHVAR]]. === Examples === # destroy all bonds <-pid GetAllConnectedBonds 0 do DestroyBond loop