if (VOTP != 'YES'):  #01 indicate the end 
		pass
	else:
		for line in OTP_lines[MAIN_VOTP_IHEX_START:MAIN_VOTP_IHEX_END]:
			Byte_count = int((line)[1:3],16)
			Starting_ad = (line)[3:7]
			Record_type = (line)[7:9]
			data = (line)[9:9+Byte_count*2]
			Check_sum = (line)[9+Byte_count*2:9+Byte_count*2+2]
			##############end check################
			if (Record_type == '01'):  #01 indicate the end of the Ihex 
				break
			for i in range(0, len(data),2):
				otp_value = data[i:i+2]
				########### start otp validate code ##############
				if OTP_TYPE == 'MIRROR_TYPE':
					Validate_CMD_length = len(Validate_CMD)
					Starting_ad_hex_send = int(Starting_ad, 16) + (i // 2)
					required_length = 2 * BYTE_SIZE_INT 
					otp_add = format(Starting_ad_hex_send, f'0{required_length - Validate_CMD_length}x')  
					otp_add = Validate_CMD + otp_add
					if  VMAIN_ADD_START <= Starting_ad_hex_send <= VMAIN_ADD_END:
						########### read data #######################
						if COM_TYPE == 'SPI':
							signal = 'm'
							ser.write(signal.encode('utf-8'))
							ser.write((M_MIRRORCMD + ';'  + otp_add + ';' + CRC_ENABLE +'%').encode('utf-8'))
							respond = read_string(ser)
							log.insert(END,respond)
							log.update_idletasks()
							log.see("end")
						else:
							signal = 'l'
							ser.write(signal.encode('utf-8'))
							ser.write((MAIN_I2C_ADDRESS + ';' + M_MIRRORCMD + ';' + otp_add + ';' + CRC_ENABLE +'%').encode('utf-8'))
							respond = read_string(ser)
							log.insert(END,respond)
							log.update_idletasks()
							log.see("end")
						########### check read #######################
						if COM_TYPE == 'SPI':
							signal = 'o'
							ser.write(signal.encode('utf-8'))
							ser.write((M_MIRRORDATA +';'+  CRC_ENABLE +'%').encode('utf-8'))
							respond = read_string(ser)
							check = compare_values(otp_value.lower(), extract_value(respond), VALIDATION_DATA_FORMAT)
							if check:
								log.insert(END,'Correct, ' + respond + '\n')
							else:
								log.insert(END,'Error, ' + respond + '\n')
								status = 'fail'
								result.config(text='FAIL', bg='red')
							log.update_idletasks()
							log.see("end")
						else:
							signal = 'n'
							ser.write(signal.encode('utf-8'))
							ser.write((MAIN_I2C_ADDRESS + ';' + M_MIRRORDATA +'%').encode('utf-8'))
							respond = read_string(ser)
							check = compare_values(otp_value.lower(), extract_value(respond), VALIDATION_DATA_FORMAT)
							if check:
								log.insert(END,'Correct, ' + respond + '\n')
							else:
								log.insert(END,'Error, ' + respond + '\n')
								status = 'fail'
								result.config(text='FAIL', bg='red')
							log.update_idletasks()
							log.see("end")
					else:
						continue
				else:
			########### non-sidence controller scheme ##############
					Starting_ad_hex_send = hex(int(Starting_ad, 16) + i // 2)
					Starting_ad_int_send = int(Starting_ad, 16) + (i // 2)
					otp_add = str(Starting_ad_hex_send).replace('0x', '')
					########### check read #######################
					if  VMAIN_ADD_START <= Starting_ad_int_send <= VMAIN_ADD_END:
						if COM_TYPE == 'SPI':
							signal = 'o'
							ser.write(signal.encode('utf-8'))
							ser.write((otp_add +';'+ CRC_ENABLE +'%').encode('utf-8'))
							respond = read_string(ser)
							check = compare_values(otp_value.lower(), extract_value(respond), VALIDATION_DATA_FORMAT)
							if check:
								log.insert(END,'Correct, ' + respond + '\n')
							else:
								log.insert(END,'Error, ' + respond + '\n')
								status = 'fail'
								result.config(text='FAIL', bg='red')
							log.update_idletasks()
							log.see("end")
						else:
							signal = 'n'
							ser.write(signal.encode('utf-8'))
							ser.write((MAIN_I2C_ADDRESS + ';' + otp_add +';'+ CRC_ENABLE +'%').encode('utf-8'))
							respond = read_string(ser)
							check = compare_values(otp_value.lower(), extract_value(respond), VALIDATION_DATA_FORMAT)
							if check:
								log.insert(END,'Correct, ' + respond + '\n')
							else:
								log.insert(END,'Error, ' + respond + '\n')
								status = 'fail'
								result.config(text='FAIL', bg='red')
							log.update_idletasks()
							log.see("end")
					else:
						continue
should the loop be ignored if my votp is not yes?