Buy Now
Sign in

Message and negative value

Maxvl , September 12 2018
M
Maxvl 90
September 12 2018 #380112
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 5.7
September 12 2018 #380115
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

You can now copy+paste code from forums
M
Maxvl 90
September 12 2018 #380125
Unfortunately it did not work out
Tell me what's wrong2018-09-12_174308.jpg
Attachments
2018-09-12_171724.pdf
(68.3 KiB)
73 Downloads/Views
healyhatman 5.7
September 12 2018 #380130
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

You can now copy+paste code from forums
M
Maxvl 90
September 15 2018 #380183
Yes2018-09-15_120428.jpg
Attachments
2018-09-15_120428.jpg
2018-09-15_120428.jpg
(81.9 KiB)
85 Downloads/Views
healyhatman 5.7
September 15 2018 #380184
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

You can now copy+paste code from forums