Could use a regular expression: if $bands[0]=~/^(?:red|green|blue|yellow)$/
In reply to Re: If condition operator by hbm in thread If condition operator by Anonymous Monk