create account

RE: [Tutorial]Developing and institutions data collection web front-end and back-end with python3.6(Final Part6) by kenechukwu2

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @yalzeee/tutorial-developing-and-institutions-data-collection-web-front-end-and-back-end-with-python3-6-final-part6

· @kenechukwu2 ·
I really love the way you applied Jinja logic on this code, but i have a question, please how can i write an else loop?
👍  
properties (23)
authorkenechukwu2
permlinkre-yalzeee-tutorial-developing-and-institutions-data-collection-web-front-end-and-back-end-with-python3-6-final-part6-20180728t204612626z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-07-28 20:46:15
last_update2018-07-28 20:46:15
depth1
children1
last_payout2018-08-04 20:46:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length119
author_reputation1,373,218,176,262
root_title"[Tutorial]Developing and institutions data collection web front-end and back-end with python3.6(Final Part6)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id66,317,463
net_rshares2,103,875,159
author_curate_reward""
vote details (1)
@yalzeee ·
The else boolean is also written similarly to the elif and even the for loop
for instance with jinja we can say
```
#assuming that we already have our if or if and elif statements
{% else %}
  {<p>whatever content you would like to display</p>
{%endelse%}
```
Hope that helps
👍  ,
properties (23)
authoryalzeee
permlinkre-kenechukwu2-re-yalzeee-tutorial-developing-and-institutions-data-collection-web-front-end-and-back-end-with-python3-6-final-part6-20180728t205529069z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-07-28 20:55:30
last_update2018-07-28 20:55:30
depth2
children0
last_payout2018-08-04 20:55:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length275
author_reputation12,484,565,044,191
root_title"[Tutorial]Developing and institutions data collection web front-end and back-end with python3.6(Final Part6)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id66,318,104
net_rshares8,360,788,785
author_curate_reward""
vote details (2)