part_type_exists - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

Gets whether or not the given particle type exists and returns the result.

Parameters

Parameter Data Type Description
ind integer index of the particle type

Return Values

boolean: Returns whether the particle type exists.

Example Call

// demonstrates checking if a particle type exists
if (part_type_exists(type)) {
  // type does exist
} else {
  // type does not exist
}

NOTOC

⚠️ **GitHub.com Fallback** ⚠️