example for Array, IfElse