Function array get lowest value problem

I am getting [Error] expected primary-expression before '<' token and [Error] expected ';' before ')' token where indicated. My code in this line is identical to the way I am shown to get the lowest value of an array in my book, what am I doing wrong?

1
2
3
4
5
6
7
8
9
10
11
12
void getLowest(double s1[], double s2[], double s3[], double s4[], double s5[], double avg[], const int scores)
{
	double lowest;
	
	lowest = s1[0];
	for (int i = 1; i < scores; i++)
	{
		if (s1[i]) < lowest) // ERRORS occur
			lowest = s1[i];
	}
	
}
NVM, after seeing it here I saw the extra ) in the line.
Topic archived. No new replies allowed.