Webcore expression error

! am a complete WebCore noob, so I may well be the cause of the error.

However, what I am trying to do is pretty simple by my standards and I cannot understand why I get an expression error when I am trying to assign the variable Season as shown below.

I do of course know that the && operator should be an || instead. I was just experimenting with different operators when making the screenshot.

I also tried doing the same in the evaluation console, and that also gave a weird result:

please post a green snapshot so it is easy for others to import it to investigate.

1 Like

For some odd reason I cannot see, assigning the variable Season results in an expression error. What am I doing wrong?

1 Like

what are the logs showing (both piston logs in IDE, and if anything is in HE logs) ?

So webCoRE is not doing the precedents you think

ie use () to clarify the expression:

No, problem is that Season does not evaluate at all. It returns an "expression error" rather than a wrong result.

what I showed works

1 Like

This one also evaluated properly for me.
image

Here's another Set Variable bug. I'm trying to set a boolean variable with an expression that returns a boolean result. But in the Logs it appears that Set Variable is trying to make it into an integer, then the piston fails. See the attached green piston and other screen shots.



I would add some parenthesis () to clarify the expression.

(a > b) || (b>c)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.