[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {let a=true() b=false() c=array() d=array( 1 )} 2 {section show=true()} 3 This should be shown 4 {/section} 5 6 {section show=false()} 7 This should not be shown 8 {/section} 9 10 11 {section show=$a} 12 a is true 13 {section-else} 14 a is not true 15 {/section} 16 17 18 {section show=$b} 19 b is true 20 {section-else} 21 b is not true 22 {/section} 23 24 25 {section show=$c} 26 c is true 27 {section-else} 28 c is not true 29 {/section} 30 31 32 {section show=$d} 33 d is true 34 {section-else} 35 d is not true 36 {/section} 37 38 {/let} 39 40 {let arr=hash( a, 5, c, false() )} 41 42 A: {section show=first_set( $arr[a], false() )}A is true{section-else}A is not true{/section} 43 44 B: {section show=first_set( $arr[b], false() )}B is true{section-else}B is not true{/section} 45 46 C: {section show=first_set( $arr[c] )}C is true{section-else}C is not true{/section} 47 48 {/let} 49 50 Empty string: 51 52 {let article=hash( node_id2, '' )} 53 {section show=first_set( $article.node_id, false() )} 54 We have a non-empty string 55 {section-else} 56 Empty string 57 {/section} 58 {/let} 59
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |