Entries

Formatted

if(floor(prop("Driving Time") / 60) > 0, format(floor(prop("Driving Time") / 60)) + " hours ", "") + if(prop("Driving Time") % 60 > 0, format(prop("Driving Time") % 60) + " minutes", "")

if(floor(prop("Driving Time") / 60) > 0,

Check to see if Driving Time divided by 60 and then rounded down is greater than 0.

format(floor(prop("Driving Time") / 60)) + " hours ", "")

If it is, display the result of Driving Time divided by 60 and rounded down and add hours, otherwise display nothing.

if(prop("Driving Time") % 60 > 0,

Check to see if the remainder of Driving Time divided by 60 is greater than 0.

format(prop("Driving Time") % 60) + " minutes", "")

If it is, display the remainder of Driving Time divided by 60 and add minutes, otherwise display nothing.

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1649d2f9-1b45-478a-86b4-341fbe27e06f/benny.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1649d2f9-1b45-478a-86b4-341fbe27e06f/benny.png" width="40px" /> By BenLatest • Was this helpful? Please consider buying me a coffee. Cheers!

</aside>