Re: BOUCLE CONDITION conditionnée par des e spaces

pierre laszczak <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <CAKNND-27jwTfgXwYpyXjxoRBE1zj0tU=v1gwWa+eqZdr1gW5Eg@mail.gmail.com>
Sinon cette syntaxe plus concise devrait fonctionner:

#SET{numcol,#SELECTION_1|sinon{#CONFIG{zbox/cols}}

[(#GET{numcol})]

Le mar. 31 déc. 2019 à 00:10, pierre laszczak <[email protected]> a
écrit :

> Salut,
>
> l'écriture raccourci:
> <BOUCLE_test(CONDITION){si
> #SELECTION_1}>#SET{NUMCOL,#SELECTION_1}</BOUCLE_test>#SET{NUMCOL,#CONFIG{zbox/cols}}<//B_test>
>
> - le </B_test> est facultatif dans ton cas
> - Pour la condition il me semble que si  #SELECTION_1 vaut 0 c'est
> equivalent a null (à verifier et tester)
>
> Le lun. 30 déc. 2019 à 21:50, bibi <[email protected]> a écrit :
>
>> Je ne pige pas. Ces deux bocles n'ont qu des espaces comme différence
>>
>>         <BOUCLE_test(CONDITION){si #SELECTION_1|>{0}}>
>>                 #SET{NUMCOL,#SELECTION_1}
>>         </BOUCLE_test>
>>         </B_test>
>>                 #SET{NUMCOL,#CONFIG{zbox/cols}}
>>         <//B_test>
>>
>> et
>>
>>
>> <BOUCLE_test(CONDITION){si
>>
>> #SELECTION_1|>{0}}>#SET{NUMCOL,#SELECTION_1}</BOUCLE_test></B_test>#SET{NUMCOL,#CONFIG{zbox/cols}}<//B_test>
>>
>>
>> Celle avec des espaces fonctionne comme je veux, à savoir si
>> #SELECTION_1 a des donnés go go
>>
>> Pourquoi ?
>>
>> Gracias y felices.
>>
>> _______________________________________________
>> liste: https://listes.rezo.net/mailman/listinfo/spip-dev
>> doc: http://www.spip.net/
>> dev: http://trac.rezo.net/trac/spip/
>> irc://irc.freenode.net/spip
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.