Basically I show a customer an estimated price based on their transport booking. Pricing is volume/weight based (which ever is greatest). So, for exampe I might charge 1.90 per kg and 95 per m3.
A client books on 5m3 that weighs 500kg.
so in weight that is 950 and in volume it is 450. I need to show to the client the greater value.
I have the values pulled in from the DB.
and I can do basic maths on it like this:
(weight price)
but I only want to show the client the higher price
so something like an if xxx >= yyy show xxx else yyy
cant figure out how I would do this in wappler. Hope this makes some sense. Dont want to start trying to hack it in if it is possible in wappler
Thanks
Darren
thanks, the theory all makes sense I have setup the variables and added those values, but, how do I setup the ternary? I tried clicking the lightning arrow on my paragraph and copying into the code section but it didnt like it. thanks
yeah i got there in the end, it is because I tried copying the value code into the value box in the App tree, copying it into source worked and setup the variable.