Back to FabImage Library website
You are here: Start » Function Reference » All Functions » Loop Utils » CountConditions
This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Counts in how many iterations the input condition was met.
Applications: Typically used to check how many PASS or FAIL cases there were in a cycle.
Syntax
void fil::CountConditions ( fil::CountConditionInLoopState& ioState, const bool inCondition, const bool inReset, int& outTrueCount, int& outFalseCount )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
ioState | CountConditionInLoopState& | Object used to maintain state of the function. | |
![]() |
inCondition | const bool | Inspected condition | |
![]() |
inReset | const bool | False | Reset counters and stop counting |
![]() |
outTrueCount | int& | Number of positive inspections | |
![]() |
outFalseCount | int& | Number of negative inspections |