part_type_exists - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Gets whether or not the given particle type exists and returns the result.
Parameter | Data Type | Description |
---|---|---|
ind | integer | index of the particle type |
boolean: Returns whether the particle type exists.
// demonstrates checking if a particle type exists
if (part_type_exists(type)) {
// type does exist
} else {
// type does not exist
}
NOTOC