Back to Aurora Vision Library website

You are here: Start » Function Reference » All Functions » Loop Utils » CountConditions

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: avl
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 avl::CountConditions
(
	avl::CountConditionInLoopState& ioState,
	const bool inCondition,
	const bool inReset,
	int& outTrueCount,
	int& outFalseCount
)

Parameters

Name Type Default Description
Input will be modified ioState CountConditionInLoopState& Object used to maintain state of the function.
Input value inCondition const bool Inspected condition
Input value inReset const bool False Reset counters and stop counting
Output value outTrueCount int& Number of positive inspections
Output value outFalseCount int& Number of negative inspections