Eat the Frog

Eat the Frog

From
Discord
Status
Updating
Share
Entries

Eat the Frog

if(prop("Walked Ted") or prop("Did Exercise") or prop("Read") or prop("Active Reading") or prop("Wrote"), replaceAll(slice("11111", 0, (toNumber(prop("Walked Ted")) + toNumber(prop("Did Exercise")) + toNumber(prop("Read")) + toNumber(prop("Active Reading")) + toNumber(prop("Wrote"))) / 5 * 5), "1", "🐸"), "🍽 Eat the Frog")
if(prop("Walked Ted") or ... ,
Check to see if any of the habits are checked. If any are, do the following.
(toNumber(prop("Walked Ted")) + ... ) / 5 * 5)
Convert each checked habit into a 1, add those together, divide by the number of habits, then multiply by the maximum number of frogs to get a total out of 5.
slice("11111", 0, ... )
Take the total out of 5 and only return that many 1s.
replaceAll( ... , "1", "🐸")
Replace all the 1s in the slice result to a 🐸
"🍽 Eat the Frog")
If no habits are checked, display 🍽️ Eat the Frog.
 
By Ben  •  Latest  •  Was this helpful? Please consider buying me a coffee. Cheers!By Ben  •  Latest  •  Was this helpful? Please consider buying me a coffee. Cheers!
By BenLatest • Was this helpful? Please consider buying me a coffee. Cheers!