不(除非事情发生变化); 只是遍历列表.
替代方案是/也有查找变量
即
lookup. = 0 /* not all versions of Rexx support
default initialisation like this */
....
addToList:
parse arg item
numberInList = numberInList + 1
list.numberInList = item
lookup.item = 1
return
Run Code Online (Sandbox Code Playgroud)
然后,您可以检查项目是否在列表中
if lookup.item = 1 then do
......
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
482 次 |
| 最近记录: |