In C shell, how can i use “if” statement to check if array include a specific variable?

前端 未结 0 1410
独厮守ぢ
独厮守ぢ 2021-01-03 14:42

I want to use "if" to check if array include a specific variable. Something like:

if ($var exist in $array) then
 //execute commands
endif


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题