| 根据条件打印概述 | 
根据条件打印可用于设置文档对象打印依据的具体条件。 请考虑以下示例: 
您正在使用相同的基本框架为两个独立的运动团队(A 队和 B 队)经营专业体育用品店。 除了标志不同,发货标签的其他部分都相同。 通过使用根据条件打印并监视模板上的具名数据源的值,您可以对两种发货标签使用相同的模板。 打印 A 队的运输标签时,标签上就会出现 A 队的标志。 同样,打印 B 队的运输标签时,会打印相应的标志。
Conditional statements are defined by using the When to Print dialog and can be based on a complex expression or on the value of a single data source. 
| 
                         | 
                         | 
 条件连接符
条件连接符
            条件连接符用于连接两个不同的条件语句,以构成新的条件。
| 
 | 条件连接符 | 描述 | 
|---|---|---|
| 
                                 | And | When two or more conditional statements are joined by an "And" joiner, all conditional statements must be met to run the instruction. | 
| 
                                 | Or | When two or more conditional statements are joined by an "Or" joiner, one or more of the conditional statements must be met to run the instruction. | 
| 
                                 | Not And | When two or more conditional statements are joined by a "Not And" joiner, all conditional statements must be unmet to run the instruction. | 
| 
                                 | Not Or | When two or more conditional statements are joined by a "Not Or" joiner, one or more of the conditional statements must be unmet to run the instruction. | 
 运算符
运算符
            Operators determine the relationship that you want between the data source and the value. 条件表达式的结构与句子类似,即“主语(数据源)”“动词(运算符)”“宾语(值)”。 以下条件表达式运算符可用于控制对象、图层、模板或背景的打印,以及数据源的抑制:
| 
 | 条件运算符 | 有效输入 | 示例 | 
|---|---|---|---|
| 
                                 | Equals | 除“时间”、“二进制”和“图片”外的所有类型 | [数据源] Equals <值> | 
| 
                                 | Does not equal | 除“时间”、“二进制”和“图片”外的所有类型 | [数据源] Does Not Equal <值> | 
| 
                                 | Is greater than | 除“时间”、“二进制”和“图片”外的所有类型 | [数据源] Is greater than <值> | 
| 
                                 | Is greater than or equal to | 除“时间”、“二进制”和“图片”外的所有类型 | [数据源] Is greater than or equal to <值> | 
| 
                                 | Is less than | 除“时间”、“二进制”和“图片”外的所有类型 | [数据源] Is less than <值> | 
| 
                                 | Is less than or equal to | 除“时间”、“二进制”和“图片”外的所有类型 | [数据源] Is less than or equal to <值> | 
| 
                                 | Is between | 除“时间”、“二进制”和“图片”外的所有类型 | [数据源] Is between <值 1> and <值 2> | 
| 
                                 | Is not between | 除“时间”、“二进制”和“图片”外的所有类型 | [数据源] Is not between <值 1> and <值 2> | 
| 
                                 | Contains | 仅限文本 | [数据源] Contains <值> | 
| 
                                 | Does not contain | 仅限文本 | [数据源] Does not contain <值> | 
| 
                                 | Begins with | 仅限文本 | [数据源] Begins with <值> | 
| 
                                 | Ends with | 仅限文本 | [数据源] Ends with <值> | 
| 
                                 | Is like | 仅限文本 | [数据源] Is like <值> | 
| 
                                 | Is not like | 仅限文本 | [数据源] Is not like <值> | 
| 
                                 | Is blank | 所有数据类型 | [数据源] Is blank | 
| 
                                 | Is not blank | 所有数据类型 | [数据源] Is not blank | 
| 
                                 | Is any of | 除“时间”、“二进制”和“图片”外的所有类型 | [数据源] Is any of <值 1>, <值 2>, <值 3>... | 
| 
                                 | Is none of | 除“时间”、“二进制”和“图片”外的所有类型 | [数据源] Is none of <值 1>, <值 2>, <值 3>... | 
| 
 | Is beyond this year | 仅限日期 | [数据源] Is beyond this year | 
| 
 | Is later this year | 仅限日期 | [数据源] Is later this year | 
| 
 | Is later this month | 仅限日期 | [数据源] Is later this month | 
| 
 | Is next week | 仅限日期 | [数据源] Is next week | 
| 
 | Is later this week | 仅限日期 | [数据源] Is later this week | 
| 
 | Is tomorrow | 仅限日期 | [数据源] Is tomorrow | 
| 
 | Is today | 仅限日期 | [数据源] Is today | 
| 
 | Is yesterday | 仅限日期 | [数据源] Is yesterday | 
| 
 | Is earlier this week | 仅限日期 | [数据源] Is earlier this week | 
| 
 | Is last week | 仅限日期 | [数据源] Is last week | 
| 
 | Is earlier this month | 仅限日期 | [数据源] Is earlier this month | 
| 
 | Is earlier this year | 仅限日期 | [数据源] Is earlier this year | 
| 
 | Is prior this year | 仅限日期 | [数据源] Is prior this year | 
| 
                                 | 所有日期和时间运算符都描述当前系统日期与数据源之间的关系。 例如,如果将某个图层设置为根据条件表达式“[数据源] Is earlier this month”条件打印,则只有以下所有条件都为真时才会打印该图层: 
 | 
相关主题
