How to write judgment in phpcms v9 template
The if statement is used to judge in phpcms v9 template. The specific usage examples are as follows:
{if $catid==10} 1 {elseif $catid==11} 2 {else} 3 {/if}
If it is in the loop body {loop $data $r}, use:
{if $r[catid]==10} 1 {elseif $r[catid]==11} 2 {else} 3 {/if}
Related recommendations: phpcms tutorial
The above is the detailed content of How to write judgment in phpcms v9 template. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

SublimeText3 Linux new version
SublimeText3 Linux latest version

SublimeText3 Mac version
God-level code editing software (SublimeText3)

SublimeText3 English version
Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.