Halcon 循环语句,条件句结构格式

  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/ybqjymy/p/14441398.html