developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 12 years ago

#573 closed bug (fixed)

Conditions multiples dans structures de controle jTpl

Reported by: yferp Owned by:
Priority: normal Milestone: Jelix 1.0.4
Component: jelix:tpl Version: 1.0.3
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description (last modified by laurentj)

Il serait pratique de pouvoir faire des if avec des conditions multiples dans un template ex :

{if (contitions1 || conditions2..)}

Change History (6)

comment:1 Changed 12 years ago by laurentj

  • Resolution set to worksforme
  • Status changed from new to closed

C'est déjà le cas depuis des lustres.

Ticket invalide donc.

comment:2 Changed 12 years ago by laurentj

  • Description modified (diff)

Précision, ton exemple, il faut l'écrire sans les parenthèses. Les parenthèses sont inutiles.

{if contitions1 || conditions2 }

comment:3 Changed 12 years ago by laurentj

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Il y a quand même bug effectivement, on ne peut pas faire par exemple

{if (contition1 || condition2) && condition3}

comment:4 Changed 12 years ago by laurentj

  • Milestone jelix 1.1 deleted

comment:5 Changed 12 years ago by yferp

autant pour moi..ca m'apprendra a improviser des exemples dans les tickets

comment:6 Changed 12 years ago by laurentj

  • Milestone set to Jelix 1.0.4
  • Resolution set to fixed
  • Status changed from reopened to closed

Corrigé pour la 1.0.4 et la 1.1.

Note: See TracTickets for help on using tickets.