halcon学习笔记——(4)HDevelop language(结构语句)

1) if ... endif / if ... else ... endif / if ... elseif ... else ... endif

2) for ... endfor

3) while ... endwhile

4) repeat ... until(循环体至少被执行一次,直到满足条件时退出。等同于C语言的do...while语句)

此外,也有关键字 break、continue、return、exit、stop 用来控制语句的执行;

stop:终止后面的循环,点击Step Over or Run button继续。

exit:终止Hdevelop程序段。

原文地址:https://www.cnblogs.com/hanzhaoxin/p/2842177.html