X2 devices and parentheses

pscs

New Member
According to the manual (book 2 page 23), X2 devices are supposed to allow expressions like:

w2 = (b8 + b9) * 7
or

but when I do this I get a syntax error, and I have to split it into two expressions.

Is this a bug in the manual, programming software, or me?
 

hippy

Technical Support
Staff member
Unfortunately the manual in this case is running ahead of the implementation and this capability is not yet available.
 

nick12ab

Senior Member
As PICAXE maths works left to right, your code will work properly without brackets. BIDMAS is not taken into account on PICAXE.
 
Top