Use of If in thinkphp HTML templates

Source: Internet
Author: User

When I wrote it was just a mistake, I struggled with {if} or <if Condition> in the manual, and of course I used the manual, but still didn't expand when I clicked the button (if the condition didn't follow).

Tried a lot of writing, also checked the logic, and various output, but the output is correct, such as the arrow pointing to the output, the result is correct

View thinkphp Manual If usage:

I have to pay attention to the details here, I just came out on this mistake. Look at the source code of my no execution results.

See the source code for proper execution:

Anyway the correct result is the switch effect of this space

Use of If in thinkphp HTML templates

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.