Some data fields contain specific numbers that stand for certain values. These enumerations typically represent all data that is shown in a drop-down list in Acquisition or Data Analysis.
You can use enumerations as follows - these examples return the number of unknown peaks:
Count(CurrentSequence.AllPeaksOfType(PeakOrGroupType.Unknown))
Count(CurrentSequence.AllPeaksOfType(0))
In a formula, you can use either the enumerable as is or enumerable.ToString(). The first returns the number of the enumeration, the second returns its meaning. For example:
Compound_Type returns 0, 1, 2, 3, 4 or 5
Compound_Type.ToString() returns Unknown, Expected, UncalibratedExpected, PeakSum, Group, or NotIdentifiedExpected
For details on the single enumerations and values, see Enumerations in the Report Template Editor help.