if(index("@commands_run",'clock') >= 0) { # string 'clock' found somewhere in array }