Can any tell me why this does not compile. I get a red X on the last line, and the variable LampV is shown in red, and is an output.
I seem to have a problem using multiple conditional statements in one script.
Deleting the last conditional statement removes the error. The error refers to the last line and says "Line 14, column 1: expecting EOF, found 'end'
if (RadLampV > IrrLampV)Bench = 'Radiance' ;CradleT = RadCradT;LampV = IrrLampV;LampT = IrrLampT;elseLampV= RadLampV;CradleT = RadCradT;LampT = IrrLampT;Bench = 'O_Irradiance';end;If LampV < 0.1Bench = 'unknown';end;
Go to Solution.
I think your error may be that your second if statement is capitalized. Try replacing "If" with "if".
Thanks. That solved it!