I found this statement in the code you told me to look at:

if ADCON0.2 = 1 Then notdone

I was thinking i could change it to:

IF PORTA.1 = 1 THEN ADCIN 0,adval '1 meaning 5V high'

is there any way i can combine 2 lines into a conditional statement?

i.e. when porta.1 goes high, do the A/D conversion and send it out using SEROUT2 command and do those two things only when porta.1 goes high.