Message and negative value

Ma Maxvl 12 Sep, 2018
Hello
The calculation is used in the form. The final value can be negative.
​
Please inform how to display an information message if the value is negative.
​
Thanks a lot
he healyhatman 12 Sep, 2018
1) PHP action
return ($this->data("name of value", "default") < 0);
2) Event switcher, data source {var:switchname} , events true, false
Ma Maxvl 12 Sep, 2018
Unfortunately it did not work out
Tell me what's wrongMessage and negative value image 1
he healyhatman 12 Sep, 2018
Well is your data field actually called "T" ?
he healyhatman 15 Sep, 2018
Try 1,0 or {value:true},{value:false} instead of true,false
​
And check your debug action to make sure T is returning what you want it to.
This topic is locked and no more replies can be posted.