简体   繁体   English

docx中的opentbs条件语句

[英]opentbs conditional statement in docx

How to show and hide the label [Merk - Track - Type || 如何显示和隐藏标签[Merk-Track-Type || Location - Certificate], so here goes : when I have a vehicle data, the data appears : 位置-证书],所以这里有:当我有车辆数据时,数据将显示:

[xtable;block=tbs:page]
Merk        : [xtable.VehicleMerk;noerr]
Track       : [xtable.VehicleTrack;noerr]
Type        : [xtable.VehicleType;noerr]

and land data the data does not appear, and otherwise. 并显示数据,否则数据不会出现。

my full code : 我的完整代码:

[xtable;block=tbs:page]
Merk        : [xtable.VehicleMerk;noerr]
Track       : [xtable.VehicleTrack;noerr]
Type        : [xtable.VehicleType;noerr]
--------------------------------------------------
Location    : [xtable.LandLocation;noerr]
Certificate : [xtable.LandCertificate;noerr]

thanks before. 之前感谢。

Answer also posted on the OpenTBS forum . 答案还发布在OpenTBS论坛上

The simplest is this : Put your vehicle information in a unique paragraph, and your land information in another unique paragraph.. Then use parameter magnet in order to make a conditional display on the paragraph. 最简单的方法是:将您的车辆信息放在一个唯一的段落中,将您的土地信息放在另一个唯一的段落中。然后使用参数磁铁在该段落上进行条件显示。

--------------------------------------------------
Merk        : [xtable.VehicleMerk;noerr;magnet=tbs:p]
Track       : [xtable.VehicleTrack;noerr]
Type        : [xtable.VehicleType;noerr]
--------------------------------------------------
Location    : [xtable.LandLocation;noerr;magnet=tbs:p]
Certificate : [xtable.LandCertificate;noerr]
--------------------------------------------------

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM