update if and foreach asp type