mardi 20 octobre 2020

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

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

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

Aucun commentaire:

Enregistrer un commentaire