Back to Adaptive Vision Library website

You are here: Start » Function Reference » Conditional Processing » MakeConditional

MakeConditional


This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.

Checks a condition. If the condition is True, then copies the input object to the output; otherwise returns Nil.

Syntax

void avl::MakeConditional
(
	const Type& inObject,
	const bool inCondition,
	typename atl::ToConditionalType<Type>::Type& outConditionalObject
)

Parameters

Name Type Default Description
inObject const Type& The data to be conditionally passed onto the output or not
inCondition const bool Determines whether the data is passed onto the output or not
outConditionalObject typename ToConditionalType<Type>::Type& The object if the condition is met or nothing otherwise

Examples

inObject = 5
inCondition = True
outConditionalObject = 5
inObject = 5
inCondition = False
outConditionalObject = Nil

Remarks

This filter can replace the following formula:

See Also