Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 field="weight,height" operator="not-exists"]
We need these fields to calculate your BMI!
Great, we can calculate your BMI!
[wt-if-3 field="bmr"]
While we're here, here is your BMR! [wt-bmr]
... and you haven't added your height.
You need to log in!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment