How find max and min values from array field

hi guys I have array as field it is integer array ,i get some integer value and now need to check if that given value is between that array max and min values????