def validateArrayValues(arrayList, valuesMustBePositive):
	for i in range(len(arrayList)):
		try:
			arrayList[i] = eval(arrayList[i])
		except (NameError, SyntaxError):
			return
		if valuesMustBePositive:
			if arrayList[i] < 0:
				return
	return arrayList
dataset/ETHPy150Open adobe-type-tools/python-scripts/UFOInstanceGenerator.py/validateArrayValues/original