Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Please explain this expression evaluator error.
Reply to topic
Author Message
Jaxom



Joined: Jun 13, 2015
Posts: 13

PostPosted: 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
jarek



Joined: Oct 22, 2007
Posts: 1053

PostPosted: Dec 12, 2024 4:44 PM    Post subject:

This expression is not compatible with BioEra or java. Look for more details in the manual and examples.
Gmartin3



Joined: Oct 19, 2021
Posts: 90

PostPosted: Dec 14, 2024 2:34 AM    Post subject:

First off there is No need for the If it should read In1>2 This means if Input 1>2


In your case what do you want the outputs to be if Input 1 is less than 2 and if Input 1 is greater than 3

When I write expressions they look something like this like this.
In1>In1?10:1
If input 1 is greater than input 2 then the output is 10 otherwise it is 1

I am nit sure what the end of your expression is trying to do
Reply to topic