Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

index === 0 are false, index == 0 are true #112

Open
sn01615 opened this issue May 25, 2016 · 0 comments
Open

index === 0 are false, index == 0 are true #112

sn01615 opened this issue May 25, 2016 · 0 comments

Comments

@sn01615
Copy link

sn01615 commented May 25, 2016

{@each carousels as it, index}
  {@if it.carousel_location==1}
    <div class="item{@if index === 0} active{@/if}">
      <a href="{@if it.carousel_pid > 0}${baseurl}app/item?pid=${it.carousel_pid}{@else}${it.carousel_link}{@/if}" class="carousel_warp"
      style="background-image: url(${it.carousel_img});"><!-- <img src="${it.carousel_img}"> --></a>
      <div class="carousel-caption">${it.carousel_text}</div>
    </div>
  {@/if}
{@/each}

${it.max_order?it.max_order:'9999999'} => ''
${it.max_order>0?it.max_order:'9999999'} => '9999999'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant