- 1
- 0
- 约9.51千字
- 约 7页
- 2018-11-16 发布于江苏
- 举报
EZPublish控制结构详解
本电子书由站长百科( HYPERLINK / )教程组制作
出处:站长百科
原文地址: HYPERLINK /wiki/EZ_Publish/EZ_Publish_模板控制结构 /wiki/EZ_Publish/EZ_Publish_模板控制结构
本电子书整理自站长百科 HYPERLINK /wiki/EZ_Publish/EZ_Publish_模板控制结构 EZ_Publish/EZ_Publish_模板控制结构词条,查看内容请访问网站。
EZ Publish模板控制结构详解
出处:站长百科
原文地址:HYPERLINK /wiki/EZ_Publish/EZ_Publish_模板控制结构/wiki/EZ_Publish/EZ_Publish_模板控制结构
本电子书整理自站长百科HYPERLINK /wiki/EZ_Publish/EZ_Publish_模板控制结构EZ_Publish/EZ_Publish_模板控制结构词条,查看内容请访问网站。
HYPERLINK /wiki/EZ_Publish \o EZ Publish eZ Publish 模板语言提供了以下的控制结构:
? IF-THEN-ELSE
? HYPERLINK /wiki/index.php?title=SWITCHaction=editredlink=1 \o SWITCH (尚未撰写) SWITCH
? HYPERLINK /wiki/index.php?title=WHILEaction=editredlink=1 \o WHILE (尚未撰写) WHILE
? DO...WHILE
? FOR
? FOREACH
IF-THEN-ELSE
参阅下例:
例1:
{if eq( $var, 128 )}
Hello world br /
{else}
No world here, move along. br /
{/if}
例2:
{if eq( $fruit, apples )}
Apples
{elseif eq( $fruit, oranges )}
Oranges
{else}
Bananas
{/if}
SWITCH
{switch match=$fruits}
{case match=apples}
Apples
{/case}
{case match=oranges}
Oranges
{/case}
{case}
Unidentified fruit!
{/case}
{/switch}
如果$fruits 初始值为oranges,则输出:
Oranges
WHILE
{while ne( $counter, 8 )}
Print this line eight times ({$counter}) br /
{set $counter=inc( $counter )}
{/while}
如果$counter 初始值为0,则输出:
Print this line eight times (0)
Print this line eight times (1)
Print this line eight times (2)
Print this line eight times (3)
Print this line eight times (4)
Print this line eight times (5)
Print this line eight times (6)
Print this line eight times (7)
DO...WHILE
{do}
Keep printing this line ({$counter}) br /
{set $counter=inc( $counter )}
{/do while ne( $counter, 8 )}
如果$counter 初始值为0,则输出:
Keep printing this line (0)
Keep printing this line (1)
Keep printing this line (2)
Keep printing this line (3)
Keep printing this line (4)
Keep printing this line (5)
Keep printing this line (6)
Keep printing this line (7)
Keep printing this line (8)
FOR
{for 0 to 7 as $counter}
Value of counter: {$counter} br /
{/for}
输出:
Value of counte
您可能关注的文档
- International FinancialManagement 6国际财务管理课件.ppt
- 商 务 谈 判 (第二版)第4章准备.ppt
- 服务营销 第8章+服务补救.ppt
- 第八课《财政与税收》课件(共69张PPT).ppt
- -学度石家庄栾城高三文科质量检测.doc
- AFBS铝合金体系.doc
- ANSYSICEMCFD优秀教材.doc
- BA经销商场规划书.doc
- Blend创建或修改.docx
- BRABENDER计量称培训优秀教材.doc
- 2026年及未来5年鸡分割肉项目市场数据调查、监测研究报告.docx
- 2026年及未来5年海蛰头项目市场数据调查、监测研究报告.docx
- 2026年及未来5年无尘擦试纸项目市场数据调查、监测研究报告.docx
- 2026年军队专业技能岗位文职人员招聘考试(安全检查员)历年参考题库含答案详解.docx
- 2026年湖南省直及地市、县事业单位招聘考试(环境监测与管理专业知识)历年参考题库含答案详解.docx
- 2026年及未来5年过滤料项目市场数据调查、监测研究报告.docx
- 2026年及未来5年微耕机项目市场数据调查、监测研究报告.docx
- 2026年及未来5年条码枪项目市场数据调查、监测研究报告.docx
- 2026年及未来5年机织土工反滤布项目市场数据调查、监测研究报告.docx
- 2026年及未来5年IC测试仪项目市场数据调查、监测研究报告.docx
最近下载
- 寒假蓄力,一模冲刺 课件--2025-2026学年高三上学期寒假规划班会课.pptx
- 环境工程仪表及自动化项目八 环境工程控制仪表的认识与使用.ppt VIP
- 卧式连续结晶罐在蔗糖生产中的应用.docx VIP
- 火力发电厂节能降耗技术改造方案(最新版).docx VIP
- 深信服桌面云VDC-用户手册_V5.9.0.pdf VIP
- 穴位贴敷法操作流程新.docx VIP
- 吊车吊装施工方案.docx VIP
- JB∕T 12935-2016 扭矩传感器.pdf VIP
- 2025年春最新小学外研版三年级英语下册单词清单及默写.docx VIP
- 高中学校党支部书记2025述职报告:以内涵建设为核,党建引领为魂,全面提升教育品位.docx VIP
原创力文档

文档评论(0)