1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*046da525Smseidel
34effe28eSAndrew Rist<!--***********************************************************
4*046da525Smseidel *
54effe28eSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
64effe28eSAndrew Rist * or more contributor license agreements.  See the NOTICE file
74effe28eSAndrew Rist * distributed with this work for additional information
84effe28eSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
94effe28eSAndrew Rist * to you under the Apache License, Version 2.0 (the
104effe28eSAndrew Rist * "License"); you may not use this file except in compliance
114effe28eSAndrew Rist * with the License.  You may obtain a copy of the License at
12*046da525Smseidel *
134effe28eSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14*046da525Smseidel *
154effe28eSAndrew Rist * Unless required by applicable law or agreed to in writing,
164effe28eSAndrew Rist * software distributed under the License is distributed on an
174effe28eSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
184effe28eSAndrew Rist * KIND, either express or implied.  See the License for the
194effe28eSAndrew Rist * specific language governing permissions and limitations
204effe28eSAndrew Rist * under the License.
21*046da525Smseidel *
224effe28eSAndrew Rist ***********************************************************-->
234effe28eSAndrew Rist
24*046da525Smseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26*046da525Smseidel<topic id="textswriterguideconditional_text2xml" indexer="include" status="PUBLISH">
27*046da525Smseidel<title xml-lang="en-US" id="tit">Conditional Text for Page Counts</title>
28*046da525Smseidel<filename>/text/swriter/guide/conditional_text2.xhp</filename>
29*046da525Smseidel</topic>
30*046da525Smseidel</meta>
31*046da525Smseidel<body>
32*046da525Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3153108">
33*046da525Smseidel<bookmark_value>page counts</bookmark_value>
34*046da525Smseidel<bookmark_value>conditional text;page counts</bookmark_value>
35cdf0e10cSrcweir</bookmark>
36cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3153108" role="heading" level="1" l10n="U" oldref="1"><variable id="conditional_text2"><link href="text/swriter/guide/conditional_text2.xhp" name="Conditional Text for Page Counts">Conditional Text for Page Counts</link>
37cdf0e10cSrcweir</variable></paragraph>
38*046da525Smseidel<paragraph xml-lang="en-US" id="par_id3156228" role="paragraph" l10n="U" oldref="3">You can create a conditional text field that displays the word "pages" instead of "page" in conjunction with a page count field if your document contains more than one page.</paragraph>
39*046da525Smseidel<list type="ordered">
40*046da525Smseidel<listitem>
41*046da525Smseidel<paragraph xml-lang="en-US" id="par_id3156257" role="listitem" l10n="U" oldref="4">Place the cursor in your document where you want to insert the page count.</paragraph>
42*046da525Smseidel</listitem>
43*046da525Smseidel<listitem>
44*046da525Smseidel<paragraph xml-lang="en-US" id="par_id3150513" role="listitem" l10n="U" oldref="5">Choose <item type="menuitem">Insert - Fields - Page Count</item>, and then enter a space.</paragraph>
45*046da525Smseidel</listitem>
46*046da525Smseidel<listitem>
47*046da525Smseidel<paragraph xml-lang="en-US" id="par_id3150537" role="listitem" l10n="U" oldref="6">Choose <item type="menuitem">Insert - Fields - Other</item>, and then click the <item type="menuitem">Functions</item> tab.</paragraph>
48*046da525Smseidel</listitem>
49*046da525Smseidel<listitem>
50*046da525Smseidel<paragraph xml-lang="en-US" id="par_id3153166" role="listitem" l10n="U" oldref="9">Click "Conditional text" in the <item type="menuitem">Type</item> list.</paragraph>
51*046da525Smseidel</listitem>
52*046da525Smseidel<listitem>
53*046da525Smseidel<paragraph xml-lang="en-US" id="par_id3145256" role="listitem" l10n="U" oldref="7">Type <item type="literal">Page &gt; 1</item> in the <item type="menuitem">Condition</item> box.</paragraph>
54*046da525Smseidel</listitem>
55*046da525Smseidel<listitem>
56*046da525Smseidel<paragraph xml-lang="en-US" id="par_id3145280" role="listitem" l10n="U" oldref="10">Type <item type="literal">Pages</item> in the <item type="menuitem">Then</item> box.</paragraph>
57*046da525Smseidel</listitem>
58*046da525Smseidel<listitem>
59*046da525Smseidel<paragraph xml-lang="en-US" id="par_id3145305" role="listitem" l10n="U" oldref="11">Type <item type="literal">Page</item> in the <item type="menuitem">Else</item> box.</paragraph>
60*046da525Smseidel</listitem>
61*046da525Smseidel<listitem>
62*046da525Smseidel<paragraph xml-lang="en-US" id="par_id3155535" role="listitem" l10n="U" oldref="8">Click <emph>Insert</emph>, and then click <emph>Close</emph>.</paragraph>
63*046da525Smseidel</listitem>
64*046da525Smseidel</list>
65*046da525Smseidel<embed href="text/shared/00/00000004.xhp#related"/>
66*046da525Smseidel<embed href="text/swriter/guide/conditional_text.xhp#conditional_text"/>
67*046da525Smseidel<embed href="text/swriter/01/04090200.xhp#defining_conditions"/>
68*046da525Smseidel<embed href="text/swriter/guide/fields.xhp#fields"/>
69*046da525Smseidel</body>
70*046da525Smseidel</helpdocument>
71