Last active
March 22, 2021 21:27
-
-
Save alicolville/5cd83f503ec3e135938a93d62423afc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Below is an example (not the best one) but an example none the less! | |
*/ | |
[wt-if field="is-logged-in"] | |
Great you're logged in... | |
[wt-if-1 field="height"] | |
... and you have added a height. | |
[wt-if-2 field="weight" operator="not-exists"] | |
... or a weight entry. | |
[/wt-if-2] | |
[wt-if-2 field="weight,height" operator="not-exists"] | |
We need these fields to calculate your BMI! | |
[else-2] | |
Great, we can calculate your BMI! | |
[wt-recent-bmi] | |
[wt-if-3 field="bmr"] | |
While we're here, here is your BMR! [wt-bmr] | |
[/wt-if-3] | |
[/wt-if-2] | |
[else-1] | |
... and you haven't added your height. | |
[/wt-if-1] | |
[else] | |
You need to log in! | |
[/wt-if] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment