Unfortunately, the vectorize operator doesn't apply to if statements. The normal way to use if statements in conjunction with arrays is to use a program for-loop or a range variable.
eg: i:=0..3
ans[i:=if(v[i>0,3,-3)
or
for i e 0..3
ans[i<- 3 if v[i>0
ans[i<- -3 otherwise