项目

一般

简介

Tbl has key » 历史记录 » 修订 2

修订 1 (yangdefeng, 2022-06-14 17:38) → 修订 2/3 (tejie, 2026-03-18 10:22)

h4. _*%{color:green}tbl_has_key%*_ 

 检测指定表是否存在指定key 

 标签:命令^tbl_has_key 标签:命令定义|tbl_has_key 

 *格式* 
 |命令名       |参数1 	 |参数2 | 
 |tbl_has_key|表名 	 |检测值| 

 *说明* 
 * 参数1: 待检测的表名 

 * 参数2: 待检测的字符串 

 - 
 - 

 h4. *%{color:deepskyblue}特戒引擎脚本示例:%* 

 - 
 - 

 bq. <notextile>[@main]</notextile> 
 <notextile><创建表/@创建表>\ \</notextile> 
 <notextile><检测表/@检测表></notextile> 
 &nbsp; 
 <notextile>[@创建表]</notextile> 
 #act 
 [[tbl_create_global]] tb_g道具清单 道具名 价格 
 [[tbl_add]] tb_g道具清单 道具1 100 
 [[tbl_add]] tb_g道具清单 道具2 200 
 [[tbl_add]] tb_g道具清单 道具3 300 
 &nbsp; 
 [[messageBox]] 道具清单创建完毕 
 &nbsp; 
 <notextile>[@检测表]</notextile> 
 #if 
 *{color:green}tbl_has_key* tb_g道具清单 道具1 
 [[not]] *{color:green}tbl_has_key* tb_g道具清单 道具4 
 #act 
 [[messageBox]] 道具清单中有道具1\\道具清单中没有道具4