HALCON Reference Manual / Control Operators

else (Operator)

Name

else — Alternative of conditional statement.

Synopsis

else( : : : )

Description

else continues after an if or elseif block with an alternative block. If the conditions of all corresponding if or elseif blocks evaluated to false (0), i.e., none of the corresponding if or elseif blocks has been executed, the following else block is executed.

Result

else (as operator) always returns 2 (H_MSG_TRUE).

Alternatives

if, elseif

See also

until, for, while

Module

Foundation


HALCON Reference Manual / Control Operators
Version 9.0.2 Copyright © 1996-2010 MVTec Software GmbH