IfLabel.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311
  1. <!DOCTYPE HTML>
  2. <html lang="zh-hans" >
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  6. <title>IfLabel判断标签 · 梦想家内容管理系统(Dreamer CMS)</title>
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  8. <meta name="description" content="">
  9. <meta name="generator" content="GitBook 3.2.3">
  10. <meta name="author" content="王俊南">
  11. <link rel="stylesheet" href="../gitbook/style.css">
  12. <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
  13. <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
  14. <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
  15. <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
  16. <meta name="HandheldFriendly" content="true"/>
  17. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  18. <meta name="apple-mobile-web-app-capable" content="yes">
  19. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  20. <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
  21. <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
  22. <link rel="prev" href="SqlLabel.html" />
  23. <link rel="shortcut icon" href="./source/images/favicon.ico" type="image/x-icon">
  24. <link rel="apple-touch-icon-precomposed" sizes="152x152" href="./source/images/favicon.png">
  25. </head>
  26. <body>
  27. <div class="book">
  28. <div class="book-summary">
  29. <div id="book-search-input" role="search">
  30. <input type="text" placeholder="输入并搜索" />
  31. </div>
  32. <nav role="navigation">
  33. <ul class="summary">
  34. <li>
  35. <a href="http://www.iteachyou.cc" target="_blank" class="custom-link">I Teach You,我教你!</a>
  36. </li>
  37. <li>
  38. <a href="https://gitee.com/iteachyou/dreamer_cms" target="_blank" class="custom-link">Dreamer CMS(Gitee)</a>
  39. </li>
  40. <li>
  41. <a href="https://github.com/iteachyou-wjn/dreamer_cms" target="_blank" class="custom-link">Dreamer CMS(Github)</a>
  42. </li>
  43. <li class="divider"></li>
  44. <li class="chapter " data-level="1.1" data-path="../">
  45. <a href="../">
  46. 封面
  47. </a>
  48. </li>
  49. <li class="chapter " data-level="1.2" data-path="../COPYRIGHT.html">
  50. <a href="../COPYRIGHT.html">
  51. 版权
  52. </a>
  53. </li>
  54. <li class="divider"></li>
  55. <li class="chapter " data-level="2.1" >
  56. <span>
  57. 前言
  58. </span>
  59. <ul class="articles">
  60. <li class="chapter " data-level="2.1.1" data-path="../preface/">
  61. <a href="../preface/">
  62. 简介
  63. </a>
  64. </li>
  65. <li class="chapter " data-level="2.1.2" data-path="../preface/Topic.html">
  66. <a href="../preface/Topic.html">
  67. 主题
  68. </a>
  69. </li>
  70. <li class="chapter " data-level="2.1.3" data-path="../preface/Publish.html">
  71. <a href="../preface/Publish.html">
  72. 发行方法
  73. </a>
  74. </li>
  75. <li class="chapter " data-level="2.1.4" data-path="../preface/Online.html">
  76. <a href="../preface/Online.html">
  77. 在线手册
  78. </a>
  79. </li>
  80. <li class="chapter " data-level="2.1.5" data-path="../preface/Last.html">
  81. <a href="../preface/Last.html">
  82. 最后
  83. </a>
  84. </li>
  85. </ul>
  86. </li>
  87. <li class="divider"></li>
  88. <li class="chapter " data-level="3.1" data-path="../chapter01/">
  89. <a href="../chapter01/">
  90. 第一章 模板设计师要求
  91. </a>
  92. <ul class="articles">
  93. <li class="chapter " data-level="3.1.1" data-path="../chapter01/Designer.html">
  94. <a href="../chapter01/Designer.html">
  95. 设计师
  96. </a>
  97. </li>
  98. <li class="chapter " data-level="3.1.2" data-path="../chapter01/Developer.html">
  99. <a href="../chapter01/Developer.html">
  100. 开发者
  101. </a>
  102. </li>
  103. </ul>
  104. </li>
  105. <li class="divider"></li>
  106. <li class="chapter " data-level="4.1" data-path="../chapter02/">
  107. <a href="../chapter02/">
  108. 第二章 模板制作流程
  109. </a>
  110. </li>
  111. <li class="divider"></li>
  112. <li class="chapter " data-level="5.1" >
  113. <span>
  114. 第三章 模板文件及目录结构
  115. </span>
  116. <ul class="articles">
  117. <li class="chapter " data-level="5.1.1" data-path="../chapter03/">
  118. <a href="../chapter03/">
  119. 模版目录
  120. </a>
  121. </li>
  122. <li class="chapter " data-level="5.1.2" data-path="../chapter03/Description.html">
  123. <a href="../chapter03/Description.html">
  124. 模板文件与功能说明
  125. </a>
  126. </li>
  127. <li class="chapter " data-level="5.1.3" data-path="../chapter03/DesignAndUse.html">
  128. <a href="../chapter03/DesignAndUse.html">
  129. 概念,设计和使用模板
  130. </a>
  131. </li>
  132. <li class="chapter " data-level="5.1.4" data-path="../chapter03/NamingRules.html">
  133. <a href="../chapter03/NamingRules.html">
  134. 命名规则
  135. </a>
  136. </li>
  137. <li class="chapter " data-level="5.1.5" data-path="../chapter03/Other.html">
  138. <a href="../chapter03/Other.html">
  139. 其它模板说明
  140. </a>
  141. </li>
  142. </ul>
  143. </li>
  144. <li class="divider"></li>
  145. <li class="chapter " data-level="6.1" data-path="../chapter04/">
  146. <a href="../chapter04/">
  147. 第四章 模板引擎介绍
  148. </a>
  149. <ul class="articles">
  150. <li class="chapter " data-level="6.1.1" data-path="../chapter04/CoreDoc.html">
  151. <a href="../chapter04/CoreDoc.html">
  152. 核心文件
  153. </a>
  154. </li>
  155. <li class="chapter " data-level="6.1.2" data-path="../chapter04/Grammar.html">
  156. <a href="../chapter04/Grammar.html">
  157. 模板语法
  158. </a>
  159. </li>
  160. <li class="chapter " data-level="6.1.3" data-path="../chapter04/LabelCategory.html">
  161. <a href="../chapter04/LabelCategory.html">
  162. 标签分类
  163. </a>
  164. </li>
  165. </ul>
  166. </li>
  167. <li class="divider"></li>
  168. <li class="chapter " data-level="7.1" >
  169. <span>
  170. 第五章 标签参考
  171. </span>
  172. <ul class="articles">
  173. <li class="chapter " data-level="7.1.1" >
  174. <span>
  175. ▶全局标签
  176. </span>
  177. </li>
  178. <li class="chapter " data-level="7.1.2" data-path="GlobalLabel.html">
  179. <a href="GlobalLabel.html">
  180. Global全局配置标签
  181. </a>
  182. </li>
  183. <li class="chapter " data-level="7.1.3" data-path="VariableLabel.html">
  184. <a href="VariableLabel.html">
  185. Variable全局变量标签
  186. </a>
  187. </li>
  188. <li class="chapter " data-level="7.1.4" data-path="TemplateLabel.html">
  189. <a href="TemplateLabel.html">
  190. Template模版路径标签
  191. </a>
  192. </li>
  193. <li class="chapter " data-level="7.1.5" data-path="IncludeLabel.html">
  194. <a href="IncludeLabel.html">
  195. Include引入文件标签
  196. </a>
  197. </li>
  198. <li class="chapter " data-level="7.1.6" data-path="TypeLabel.html">
  199. <a href="TypeLabel.html">
  200. Type栏目调用标签
  201. </a>
  202. </li>
  203. <li class="chapter " data-level="7.1.7" data-path="ChannelLabel.html">
  204. <a href="ChannelLabel.html">
  205. Channel频道列表标签
  206. </a>
  207. </li>
  208. <li class="chapter " data-level="7.1.8" data-path="ListLabel.html">
  209. <a href="ListLabel.html">
  210. List文章列表标签
  211. </a>
  212. </li>
  213. <li class="chapter " data-level="7.1.9" data-path="CategoryArtListLabel.html">
  214. <a href="CategoryArtListLabel.html">
  215. CategoryArtListLabel栏目内容列表标签
  216. </a>
  217. </li>
  218. <li class="chapter " data-level="7.1.10" data-path="TagLabel.html">
  219. <a href="TagLabel.html">
  220. TagLabel标签列表标签
  221. </a>
  222. </li>
  223. <li class="chapter " data-level="7.1.11" data-path="TreeLabel.html">
  224. <a href="TreeLabel.html">
  225. TreeLabel栏目树标签
  226. </a>
  227. </li>
  228. <li class="chapter " data-level="7.1.12" data-path="AttachmentLabel.html">
  229. <a href="AttachmentLabel.html">
  230. AttachmentLabel附件标签
  231. </a>
  232. </li>
  233. <li class="chapter " data-level="7.1.13" data-path="SqlLabel.html">
  234. <a href="SqlLabel.html">
  235. SqlLabel SQL标签
  236. </a>
  237. </li>
  238. <li class="chapter active" data-level="7.1.14" data-path="IfLabel.html">
  239. <a href="IfLabel.html">
  240. IfLabel判断标签
  241. </a>
  242. </li>
  243. <li class="chapter " data-level="7.1.15" >
  244. <span>
  245. ▶分页标签
  246. </span>
  247. </li>
  248. <li class="chapter " data-level="7.1.16" data-path="CategoryLabel.html">
  249. <a href="CategoryLabel.html">
  250. Category分页栏目标签
  251. </a>
  252. </li>
  253. <li class="chapter " data-level="7.1.17" data-path="TopCategoryLabel.html">
  254. <a href="TopCategoryLabel.html">
  255. TopCategory分页顶级栏目标签
  256. </a>
  257. </li>
  258. <li class="chapter " data-level="7.1.18" data-path="LocationLabel.html">
  259. <a href="LocationLabel.html">
  260. Location当前位置标签
  261. </a>
  262. </li>
  263. <li class="chapter " data-level="7.1.19" >
  264. <span>
  265. ▶列表标签
  266. </span>
  267. </li>
  268. <li class="chapter " data-level="7.1.20" data-path="PageListLabel.html">
  269. <a href="PageListLabel.html">
  270. PageList文章分页标签
  271. </a>
  272. </li>
  273. <li class="chapter " data-level="7.1.21" data-path="PaginationLabel.html">
  274. <a href="PaginationLabel.html">
  275. Pagination显示分页标签
  276. </a>
  277. </li>
  278. <li class="chapter " data-level="7.1.22" >
  279. <span>
  280. ▶内容标签
  281. </span>
  282. </li>
  283. <li class="chapter " data-level="7.1.23" data-path="ArticleLabel.html">
  284. <a href="ArticleLabel.html">
  285. Article文章页标签
  286. </a>
  287. </li>
  288. <li class="chapter " data-level="7.1.24" data-path="PrevNextLabel.html">
  289. <a href="PrevNextLabel.html">
  290. PrevNext上一篇、下一篇标签
  291. </a>
  292. </li>
  293. </ul>
  294. </li>
  295. <li class="chapter " data-level="7.2" data-path="../chapter06/DataBase.html">
  296. <a href="../chapter06/DataBase.html">
  297. 第六章 数据库
  298. </a>
  299. </li>
  300. <li class="chapter " data-level="7.3" >
  301. <span>
  302. 第七章 模板扩展
  303. </span>
  304. <ul class="articles">
  305. <li class="chapter " data-level="7.3.1" data-path="../chapter07/Message.html">
  306. <a href="../chapter07/Message.html">
  307. 留言投稿
  308. </a>
  309. </li>
  310. <li class="chapter " data-level="7.3.2" data-path="../chapter07/Search.html">
  311. <a href="../chapter07/Search.html">
  312. 网站搜索
  313. </a>
  314. </li>
  315. <li class="chapter " data-level="7.3.3" data-path="../chapter07/DefineLabel.html">
  316. <a href="../chapter07/DefineLabel.html">
  317. 定义标签
  318. </a>
  319. </li>
  320. <li class="chapter " data-level="7.3.4" data-path="../chapter07/Regexp.html">
  321. <a href="../chapter07/Regexp.html">
  322. 正则工具类
  323. </a>
  324. </li>
  325. </ul>
  326. </li>
  327. <li class="chapter " data-level="7.4" >
  328. <span>
  329. 第八章 部署上线
  330. </span>
  331. <ul class="articles">
  332. <li class="chapter " data-level="7.4.1" data-path="../chapter08/Environment.html">
  333. <a href="../chapter08/Environment.html">
  334. 环境准备
  335. </a>
  336. </li>
  337. <li class="chapter " data-level="7.4.2" data-path="../chapter08/Packaging.html">
  338. <a href="../chapter08/Packaging.html">
  339. 应用打包
  340. </a>
  341. </li>
  342. <li class="chapter " data-level="7.4.3" data-path="../chapter08/Online.html">
  343. <a href="../chapter08/Online.html">
  344. 项目上线
  345. </a>
  346. </li>
  347. </ul>
  348. </li>
  349. <li class="chapter " data-level="7.5" >
  350. <span>
  351. 第九章 常见问题
  352. </span>
  353. <ul class="articles">
  354. <li class="chapter " data-level="7.5.1" data-path="../chapter09/Business.html">
  355. <a href="../chapter09/Business.html">
  356. 商业授权
  357. </a>
  358. </li>
  359. <li class="chapter " data-level="7.5.2" data-path="../chapter09/ResourceDir.html">
  360. <a href="../chapter09/ResourceDir.html">
  361. 资源目录
  362. </a>
  363. </li>
  364. <li class="chapter " data-level="7.5.3" data-path="../chapter09/RichTextEditor.html">
  365. <a href="../chapter09/RichTextEditor.html">
  366. 富文本编辑器
  367. </a>
  368. </li>
  369. <li class="chapter " data-level="7.5.4" data-path="../chapter09/NavActive.html">
  370. <a href="../chapter09/NavActive.html">
  371. 导航Active
  372. </a>
  373. </li>
  374. <li class="chapter " data-level="7.5.5" data-path="../chapter09/CategoryPage.html">
  375. <a href="../chapter09/CategoryPage.html">
  376. 栏目分页
  377. </a>
  378. </li>
  379. <li class="chapter " data-level="7.5.6" data-path="../chapter09/CategoryFilter.html">
  380. <a href="../chapter09/CategoryFilter.html">
  381. 多级栏目筛选
  382. </a>
  383. </li>
  384. <li class="chapter " data-level="7.5.7" data-path="../chapter09/MutipleLanguage.html">
  385. <a href="../chapter09/MutipleLanguage.html">
  386. 多语言网站
  387. </a>
  388. </li>
  389. <li class="chapter " data-level="7.5.8" data-path="../chapter09/UploadContrl.html">
  390. <a href="../chapter09/UploadContrl.html">
  391. 上传大小控制
  392. </a>
  393. </li>
  394. <li class="chapter " data-level="7.5.9" data-path="../chapter09/ResourceNotFound.html">
  395. <a href="../chapter09/ResourceNotFound.html">
  396. 上线图片404
  397. </a>
  398. </li>
  399. <li class="chapter " data-level="7.5.10" data-path="../chapter09/Favicon.html">
  400. <a href="../chapter09/Favicon.html">
  401. 站点Favicon
  402. </a>
  403. </li>
  404. </ul>
  405. </li>
  406. <li class="chapter " data-level="7.6" >
  407. <span>
  408. 第十章 关于捐赠
  409. </span>
  410. <ul class="articles">
  411. <li class="chapter " data-level="7.6.1" data-path="../chapter10/DonationList.html">
  412. <a href="../chapter10/DonationList.html">
  413. 授权和捐赠
  414. </a>
  415. </li>
  416. </ul>
  417. </li>
  418. <li class="divider"></li>
  419. <li>
  420. <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
  421. 本书使用 GitBook 发布
  422. </a>
  423. </li>
  424. </ul>
  425. </nav>
  426. </div>
  427. <div class="book-body">
  428. <div class="body-inner">
  429. <div class="book-header" role="navigation">
  430. <!-- Title -->
  431. <h1>
  432. <i class="fa fa-circle-o-notch fa-spin"></i>
  433. <a href=".." >IfLabel判断标签</a>
  434. </h1>
  435. </div>
  436. <div class="page-wrapper" tabindex="-1" role="main">
  437. <div class="page-inner">
  438. <div id="book-search-results">
  439. <div class="search-noresults">
  440. <section class="normal markdown-section">
  441. <div style="display: flex;">
  442. <img src="https://oss.iteachyou.cc/logo.png" height="30">
  443. <div style="margin-left: 5px; font-size: 30px; line-height: 30px; font-weight: bold;">&#x68A6;&#x60F3;&#x5BB6;&#x5185;&#x5BB9;&#x7BA1;&#x7406;&#x7CFB;&#x7EDF;</div>
  444. </div>
  445. <hr>
  446. <h3 id="if&#x5224;&#x65AD;&#x6807;&#x7B7E;"><a name="if&#x5224;&#x65AD;&#x6807;&#x7B7E;" class="plugin-anchor" href="#if&#x5224;&#x65AD;&#x6807;&#x7B7E;"><i class="fa fa-link" aria-hidden="true"></i></a>If&#x5224;&#x65AD;&#x6807;&#x7B7E;</h3>
  447. <h4 id="&#x9002;&#x7528;&#x7248;&#x672C;"><a name="&#x9002;&#x7528;&#x7248;&#x672C;" class="plugin-anchor" href="#&#x9002;&#x7528;&#x7248;&#x672C;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9002;&#x7528;&#x7248;&#x672C;</h4>
  448. <p>
  449. Previous_Releases_2.0.0 +
  450. </p>
  451. <h4 id="&#x540D;&#x79F0;"><a name="&#x540D;&#x79F0;" class="plugin-anchor" href="#&#x540D;&#x79F0;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x540D;&#x79F0;</h4>
  452. <p>
  453. &#x5224;&#x65AD;&#x6807;&#x7B7E;
  454. </p>
  455. <h4 id="&#x529F;&#x80FD;"><a name="&#x529F;&#x80FD;" class="plugin-anchor" href="#&#x529F;&#x80FD;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x529F;&#x80FD;</h4>
  456. <p>
  457. &#x7528;&#x4E8E;&#x5728;&#x9875;&#x9762;&#x4E2D;&#x4F5C;&#x7B80;&#x5355;&#x7684;&#x5224;&#x65AD;&#xFF0C;&#x76EE;&#x524D;&#x53EA;&#x652F;&#x6301;eq&#x548C;neq&#xFF0C;&#x4E14;&#x53EA;&#x7528;&#x4E8E;&#x5728;categoryartlist&#x6807;&#x7B7E;&#x5185;&#x4F7F;&#x7528;&#x3002;
  458. </p>
  459. <h4 id="&#x8BED;&#x6CD5;"><a name="&#x8BED;&#x6CD5;" class="plugin-anchor" href="#&#x8BED;&#x6CD5;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8BED;&#x6CD5;</h4>
  460. <pre><code class="lang-html?linenums">{dreamer-cms:if test=&quot;(&apos;false&apos; eq [field:haschildren/])&quot;}
  461. &lt;li&gt;&lt;a ref=&quot;[field:typeurl /]&quot; title=&quot;[field:typenamecn /]&quot;&gt;[field:typenamecn /]&lt;/a&gt;&lt;/li&gt;
  462. {/dreamer-cms:if}
  463. </code></pre>
  464. <h4 id="&#x6587;&#x4EF6;"><a name="&#x6587;&#x4EF6;" class="plugin-anchor" href="#&#x6587;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6587;&#x4EF6;</h4>
  465. <pre><code class="lang-java?linenums">cc.iteachyou.cms.taglib.tags.IfTag
  466. </code></pre>
  467. <h4 id="&#x53C2;&#x6570;"><a name="&#x53C2;&#x6570;" class="plugin-anchor" href="#&#x53C2;&#x6570;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x53C2;&#x6570;</h4>
  468. <table>
  469. <thead>
  470. <tr>
  471. <th style="text-align:center">&#x53C2;&#x6570;&#x540D;</th>
  472. <th style="text-align:left">&#x63CF;&#x8FF0;</th>
  473. </tr>
  474. </thead>
  475. <tbody>
  476. <tr>
  477. <td style="text-align:center">test</td>
  478. <td style="text-align:left">&#x8868;&#x8FBE;&#x5F0F;&#xFF08;&#x6CE8;&#xFF1A;&#x4E00;&#x5B9A;&#x8981;&#x7528;&#x5C0F;&#x62EC;&#x53F7;&#x5305;&#x88F9;&#xFF0C;&#x76EE;&#x524D;&#x53EA;&#x652F;&#x6301;eq&#x548C;neq&#x3002;&#xFF09;</td>
  479. </tr>
  480. </tbody>
  481. </table>
  482. <h4 id="&#x5E95;&#x5C42;&#x5B57;&#x6BB5;"><a name="&#x5E95;&#x5C42;&#x5B57;&#x6BB5;" class="plugin-anchor" href="#&#x5E95;&#x5C42;&#x5B57;&#x6BB5;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5E95;&#x5C42;&#x5B57;&#x6BB5;</h4>
  483. <p>&#x65E0;</p>
  484. <h4 id="&#x8303;&#x4F8B;"><a name="&#x8303;&#x4F8B;" class="plugin-anchor" href="#&#x8303;&#x4F8B;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x8303;&#x4F8B;</h4>
  485. <pre><code class="lang-html?linenums">{dreamer-cms:categoryartlist length=&quot;1&quot;}
  486. {dreamer-cms:if test=&quot;(&apos;true&apos; eq [field:haschildren/])&quot;}
  487. &lt;li class=&quot;dropdown nav-item&quot;&gt;&lt;a href=&quot;[field:typeurl/]&quot; class=&quot;nav-link dropdown-toggle&quot; data-toggle=&quot;dropdown&quot;&gt;[field:typenamecn /]&lt;/a&gt;
  488. &lt;ul class=&quot;dropdown-menu&quot;&gt;
  489. {dreamer-cms:channel}
  490. &lt;li&gt;&lt;a class=&quot;dropdown-item&quot; href=&quot;[field:typeurl/]&quot;&gt;&lt;i class=&quot;ion ion-chevron-right&quot;&gt;&lt;/i&gt;[field:typenamecn /]&lt;/a&gt;&lt;/li&gt;
  491. {/dreamer-cms:channel}
  492. &lt;/ul&gt;
  493. &lt;/li&gt;
  494. {/dreamer-cms:if}
  495. {dreamer-cms:if test=&quot;(&apos;false&apos; eq [field:haschildren/])&quot;}
  496. &lt;li class=&quot;nav-item&quot;&gt;&lt;a class=&quot;nav-link scroll&quot; href=&quot;[field:typeurl /]&quot; title=&quot;[field:typenamecn /]&quot;&gt;[field:typenamecn /]&lt;/a&gt;&lt;/li&gt;
  497. {/dreamer-cms:if}
  498. {/dreamer-cms:categoryartlist}
  499. </code></pre>
  500. <h4 id="&#x6548;&#x679C;"><a name="&#x6548;&#x679C;" class="plugin-anchor" href="#&#x6548;&#x679C;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x6548;&#x679C;</h4>
  501. <p>&#x65E0;</p>
  502. </section>
  503. </div>
  504. <div class="search-results">
  505. <div class="has-results">
  506. <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
  507. <ul class="search-results-list"></ul>
  508. </div>
  509. <div class="no-results">
  510. <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
  511. </div>
  512. </div>
  513. </div>
  514. </div>
  515. </div>
  516. </div>
  517. <a href="SqlLabel.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: SqlLabel SQL标签">
  518. <i class="fa fa-angle-left"></i>
  519. </a>
  520. </div>
  521. <script>
  522. var gitbook = gitbook || [];
  523. gitbook.push(function() {
  524. gitbook.page.hasChanged({"page":{"title":"IfLabel判断标签","level":"7.1.14","depth":2,"next":{"title":"▶分页标签","level":"7.1.15","depth":2,"ref":"","articles":[]},"previous":{"title":"SqlLabel SQL标签","level":"7.1.13","depth":2,"path":"chapter05/SqlLabel.md","ref":"chapter05/SqlLabel.md","articles":[]},"dir":"ltr"},"config":{"plugins":["anchors","favicon-absolute","highlight"],"styles":{"website":"./styles/website.css"},"pluginsConfig":{"favicon-absolute":{"appleTouchIconMore":{},"appleTouchIconPrecomposed152":"./source/images/favicon.png","appleTouchIconPrecomposedMore":{},"favicon":"./source/images/favicon.ico"},"anchors":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"王俊南","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"梦想家内容管理系统(Dreamer CMS)","language":"zh-hans","links":{"sidebar":{"I Teach You,我教你!":"http://www.iteachyou.cc","Dreamer CMS(Gitee)":"https://gitee.com/iteachyou/dreamer_cms","Dreamer CMS(Github)":"https://github.com/iteachyou-wjn/dreamer_cms"}},"gitbook":"3.2.3","description":"Dreamer CMS,梦想家内容管理系统官方使用文档"},"file":{"path":"chapter05/IfLabel.md","mtime":"2023-09-28T07:00:56.520Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2024-05-14T01:34:04.807Z"},"basePath":"..","book":{"language":""}});
  525. });
  526. </script>
  527. </div>
  528. <script src="../gitbook/gitbook.js"></script>
  529. <script src="../gitbook/theme.js"></script>
  530. <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
  531. <script src="../gitbook/gitbook-plugin-search/search.js"></script>
  532. <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
  533. <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
  534. <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
  535. <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
  536. </body>
  537. </html>