Is it a bug? True, it's different from PHP, and probably from math standard (?). But I cannot change it easily. The parser is constructed in a way that presupposes a strict operator precedence. It's * > / > + > -jacky wrote:Little bug in calculations, it seems XY always do additions before substractions instead of going left to right...Code: Select all
msg 5 - 2; // 3 msg 5 - 2 + 1; // 2 !! msg (5 - 2) + 1; // 4 msg 5 - (2 + 1); // 2
But, wait... there might be a way... EDIT: okay, done.
XYplorer Beta Club