if判断句缩写
有字母 A B C D 还有数字 1 2 3 4 5 6 7 8 9当tx等于A B C D 其中一个然后 tx1 等于 1 - 9 的其中一个 成立用if判断的话要写很长很长
比如
( if(and(or (= tx "A") (= tx "B") (= tx "C") (= tx "D"))(or (= TX1 "1")(= TX1 "2")(= TX1 "3")(= TX1 "4")(= TX1 "5")(= TX1 "6")(= TX1 "7"))))
(if (and
(member tx '("A" "B" "C" "D"))
(member tx1 '("1" "2" "3" "4" "5" "6" "7" "8" "9"))
)
t
nil
) 高手指点指点指点 先参考 WcMatch===> @# lostbalance 发表于 2018-11-1 15:40
(if (and
(member tx '("A" "B" "C" "D"))
(member tx1 '("1" "2" "3" "4" "5" "6" "7" ...
谢谢你的指点 学习了 Andyhon 发表于 2018-11-2 11:02
先参考 WcMatch===> @#
谢谢 大佬你收不收徒啊 :'(
页:
[1]