Jaxom
Joined: Jun 13, 2015 Posts: 11
|
Posted: Nov 20, 2024 1:54 AM Post subject: Please explain this expression evaluator error. |
|
Please help if you can - I really need help with it!
What's wrong with this expression, and how do I fix it?
This expression . . .
if((l1>l2), 10, if((l1<l3), 0, (10*(l1-l3)/(l2-l3))))
. . . gives this error on the console . . .
***************************************
C:\Program Files (x86)\BioEraPro\tmp\ExprEval_1_Beta.java:11: illegal start of expression Out1=(/*TypChanged*/float)(if((l1>l2), 10, if((l1<l3), 0, (10*(l1-l3)/(l2-l3))))); ^ C:\Program Files (x86)\BioEraPro\tmp\ExprEval_1_Beta.java:11: ')' expected Out1=(/*TypChanged*/float)(if((l1>l2), 10, if((l1<l3), 0, (10*(l1-l3)/(l2-l3))))); ^ C:\Program Files (x86)\BioEraPro\tmp\ExprEval_1_Beta.java:11: not a statement Out1=(/*TypChanged*/float)(if((l1>l2), 10, if((l1<l3), 0, (10*(l1-l3)/(l2-l3))))); ^ C:\Program Files (x86)\BioEraPro\tmp\ExprEval_1_Beta.java:11: ';' expected Out1=(/*TypChanged*/float)(if((l1>l2), 10, if((l1<l3), 0, (10*(l1-l3)/(l2-l3))))); ^ C:\Program Files (x86)\BioEraPro\tmp\ExprEval_1_Beta.java:11: ')' expected Out1=(/*TypChanged*/float)(if((l1>l2), 10, if((l1<l3), 0, (10*(l1-l3)/(l2-l3))))); ^ C:\Program Files (x86)\BioEraPro\tmp\ExprEval_1_Beta.java:11: ';' expected Out1=(/*TypChanged*/float)(if((l1>l2), 10, if((l1<l3), 0, (10*(l1-l3)/(l2-l3))))); ^ C:\Program Files (x86)\BioEraPro\tmp\ExprEval_1_Beta.java:11: illegal start of expression Out1=(/*TypChanged*/float)(if((l1>l2), 10, if((l1<l3), 0, (10*(l1-l3)/(l2-l3))))); ^ C:\Program Files (x86)\BioEraPro\tmp\ExprEval_1_Beta.java:11: ';' expected Out1=(/*TypChanged*/float)(if((l1>l2), 10, if((l1<l3), 0, (10*(l1-l3)/(l2-l3))))); ^ C:\Program Files (x86)\BioEraPro\tmp\ExprEval_1_Beta.java:11: not a statement Out1=(/*TypChanged*/float)(if((l1>l2), 10, if((l1<l3), 0, (10*(l1-l3)/(l2-l3))))); ^ C:\Program Files (x86)\BioEraPro\tmp\ExprEval_1_Beta.java:11: ';' expected Out1=(/*TypChanged*/float)(if((l1>l2), 10, if((l1<l3), 0, (10*(l1-l3)/(l2-l3))))); ^ 10 errors Reinit problem in element Beta Truncated Between Extremes & Normalized 0-to-10(813): n: Expression compilation failed. For more details see messages on the console
***************************************
Hope you can help me!
Thank you.
Jaxom |
|