项目

一般

简介

Tbl has key » 历史记录 » 版本 3

tejie, 2026-06-30 17:35

1 1 yangdefeng
h4. _*%{color:green}tbl_has_key%*_
2
3
检测指定表是否存在指定key
4
5 2 tejie
标签:命令^tbl_has_key
6 1 yangdefeng
7
*格式*
8
|命令名     |参数1	|参数2 |
9
|tbl_has_key|表名	|检测值|
10
11
*说明*
12 3 tejie
|参数1|待检测的表名|
13
|参数2|待检测的字符串|
14 1 yangdefeng
15
-
16
-
17
18
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
19
20
-
21
-
22
23
bq. <notextile>[@main]</notextile>
24
<notextile><创建表/@创建表>\ \</notextile>
25
<notextile><检测表/@检测表></notextile>
26
&nbsp;
27
<notextile>[@创建表]</notextile>
28
#act
29
[[tbl_create_global]] tb_g道具清单 道具名 价格
30
[[tbl_add]] tb_g道具清单 道具1 100
31
[[tbl_add]] tb_g道具清单 道具2 200
32
[[tbl_add]] tb_g道具清单 道具3 300
33
&nbsp;
34
[[messageBox]] 道具清单创建完毕
35
&nbsp;
36
<notextile>[@检测表]</notextile>
37
#if
38
*{color:green}tbl_has_key* tb_g道具清单 道具1
39
[[not]] *{color:green}tbl_has_key* tb_g道具清单 道具4
40
#act
41
[[messageBox]] 道具清单中有道具1\\道具清单中没有道具4