gbm - 2017-07-24

The 'if' expression 'if (e1,e2,e3)' is deprecated in muParser since version 2.0.0.
Instead, you can use the if-then-else ternary operator '?:' that has a C++ style syntax:

e1 ? e2 : e3

Thus, your formula could be:

col("Ton[]") < 0 ? 0 : col("Ton[]")

or, alternatively

max(0, col("Ton[]"))