Buy Now
Sign in

Message and negative value

Maxvl , September 12 at 07:47
M
Maxvl
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
healyhatman
1) PHP action
return ($this->data("name of value", "default") < 0);
2) Event switcher, data source {var:switchname} , events true, false
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman
M
Maxvl
Unfortunately it did not work out
Tell me what's wrong2018-09-12_174308.jpg
Attachments
2018-09-12_171724.pdf
(68.3 KiB)
45 Downloads/Views
healyhatman
Well is your data field actually called "T" ?
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman
M
Maxvl
Yes2018-09-15_120428.jpg
Attachments
2018-09-15_120428.jpg
2018-09-15_120428.jpg
(81.9 KiB)
52 Downloads/Views
healyhatman
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.
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman