Is there a way in Mathematica to determine if all the integers in a list are less than a set number. For example if I want to know if all the numbers in a list are less than 10:
theList = {1, 2, 3, 10};
magicFunction[theList, 10]; --> returns False
Thanks for your help.
Look into the Max function for lists, which returns the largest number in the list. From there, you can check if this value is less than a certain number.