VCL语法教程——2.循环及运算

VCL语法教程——2.循环及运算

  1. 运算符
    = equal to 也可以用== , eq
    <> not equal to 也可以用!=
    < less than
    <= less than or equal to
    > greater than
    >= greater than or equal to
    and 也可以用&
    or 也可以用|
这里注意1.=既有赋值也有比较的功能
	   2. <> 代表不等于
	   3. 注意and 和 or的使用
  1. 条件语句if-else
if(((user1=0x12) and (user2=0x13)) or (user3<>0))
{
	some code
}
else if (user5=0x23)
{
	some code
}
else
{
   code here
}
  1. while 循环
while(user=0x12)
{
    code here or just empty
}
  1. goto 语句用于与label的跳转,见教程1
  2. call-return语句,用于子程序的跳转。
main:
 	code for first step
	code for second step
	call mysubscript
	the last code to step
goto main:

mysubscript:
	code for third step

总结:VCL不支持case语句.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值