Also as a side question, can anyone recommend some sort of way where numbers inputted in different dialog boxes and what is returned is the highest and lowest numbers? The method i'm thinking of is using a loop. But I'm not just sure how to go about it. Currently I've done it the long way, separating min and max and using if statements for every number storing the max and min in separate variables. Anyway to make this more efficient without using arrays would be helpful.
if (N1 >= N2) {
N1 = max
} else {
N2 = max }
if (N2 >= N3) {
N2 = max
} else {
N3 = max }
if (N3 >= N4) {
N3 = max
} else {
N4 = max }
if (N4 >= N5) {
N4 = max
} else {
N5 = max }
if (N5 >= N6) {
N5 = max
} else {
N6 = max }
if (N6 >= N7) {
N6 = max
} else {
N7 = max }
if (N6 >= N7) {
N6 = max
} else {
N7 = max }
if (N7 >= N8) {
N7 = max
} else {
N8 = max }
if (N8 >= N9) {
N8 = max
} else {
N9 = max }
if (N9 >= N10) {
N9 = max
} else {
N10 = max }
Thanks a lot for your help.

New Topic/Question
Reply



MultiQuote





|