simtalk语言有哪些函数
发布网友
发布时间:2023-07-11 21:17
我来回答
共1个回答
热心网友
时间:2024-05-05 04:31
if <condition> then
<statement sequence1>;: @6 V! A# B. e2 d6 W, J
elseif <condition> then
<statement sequence2>;% l6 e1 F% h: L! |0 }. K
else * f! l) B# k( Z5 ^0 w
<statement sequence3>;
end;
如果分支比较多,用:
inspect <expression>
when <constant_list> then. z) X% ]( t5 V; z: F
<statement sequence1>;
when <constant_list> then
<statement sequence2>;
...
else
<statement sequence3>;
end;