关键词不能为空

当前您在: 主页 > 英语 >

IF语句的使用

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-01-29 23:37
tags:

-

2021年1月29日发(作者:couplets)


u *if,val1, oper, val2, base:


条件语句



val1, val2:


待比较的值(也可是字符,用引号括起来)



oper:


逻辑操作(当实数比较时,误差为


1e-10




eq, ne, lt, gt, le, ge, ablt, abgt base:


< /p>



oper


结果为逻辑真时的行为



lable:


用户定义的行标志



stop:


将跳出


anasys



exit:


跳出当前的



do


循环



cycle:


跳至当前


do


循环的末尾



then:


构成


if-then- else


结构



注意:不允许跳出、 跳进一个


do,if


循环至


label







*IF


,


VAL1


,


Oper1


,


VAL2


,


Base1


,


VAL3


,


Oper2


,


VAL4


,


Base2



Conditionally causes commands to be read.


APDL


:


Process Controls



MP ME ST PR PRN <> <> FL EM <> <> PP <>


Argument Descriptions


VAL1




First


numerical


value


(or


parameter


which


evaluates


to


a


numerical


value) in the conditional comparison operation.


VAL1


,


VAL2


,


VAL3


,


and


VAL4


can also be character strings (enclosed in quotes) or


parameters for


Oper


= EQ and NE only.


Oper1




Operation label. A tolerance of 1.0E-10 is used for comparisons


between real numbers:


EQ --




Equal (for


VAL1


=


VAL2


).


NE --




Not equal (for


VAL1




VAL2


).


LT --




Less than (for


VAL1


<


VAL2


).


GT --




Greater than (for


VAL1


>


VAL2


).


LE --




Less than or equal (for


VAL1



GE --





VAL2


).


Greater than or equal (for


VAL1



ABLT --





VAL2


).


Absolute values of


VAL1


and


VAL2


before < operation.


ABGT --




Absolute values of


VAL1


and


VAL2


before > operation.


VAL2




Second


numerical


value


(or


parameter


which


evaluates


to


a


numerical


value) in the conditional comparison operation.


Base1



-


-


-


-


-


-


-


-



本文更新与2021-01-29 23:37,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/587887.html

IF语句的使用的相关文章