diff options
Diffstat (limited to 'helpcontent2/source/text/swriter/01/04090200.xhp')
-rwxr-xr-x | helpcontent2/source/text/swriter/01/04090200.xhp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/helpcontent2/source/text/swriter/01/04090200.xhp b/helpcontent2/source/text/swriter/01/04090200.xhp index 78e49d8174..66da064bd8 100755 --- a/helpcontent2/source/text/swriter/01/04090200.xhp +++ b/helpcontent2/source/text/swriter/01/04090200.xhp @@ -108,7 +108,7 @@ </listitem> </list> <paragraph xml-lang="en-US" id="par_id3155916" role="paragraph" l10n="U" oldref="29">You cannot use internal variables, such as page and chapter numbers, in condition expression.</paragraph> - <paragraph xml-lang="en-US" id="hd_id3151375" role="heading" level="1" l10n="U" + <paragraph xml-lang="en-US" id="hd_id3151375" role="heading" level="2" l10n="U" oldref="30">Conditions and Variables</paragraph> <paragraph xml-lang="en-US" id="par_id3150122" role="paragraph" l10n="U" oldref="31">The following examples use a variable called "x":</paragraph> <table id="tbl_id3155867"> @@ -161,7 +161,7 @@ </table> <paragraph xml-lang="en-US" id="par_id3150097" role="note" l10n="CHG" oldref="45">The "equal" comparative operator must be represented by two equal signs (==) in a condition. For example, if you define a variable "x" with the value of 1, you can enter the condition as x==1.</paragraph> - <paragraph xml-lang="en-US" id="hd_id3148791" role="heading" level="1" l10n="U" + <paragraph xml-lang="en-US" id="hd_id3148791" role="heading" level="2" l10n="U" oldref="95">User Data</paragraph> <paragraph xml-lang="en-US" id="par_id3150028" role="paragraph" l10n="U" oldref="96">You can include user data when you define conditions. To change your user data, choose <emph>Tools - Options - $[officename] - User data</emph>. User data must be entered in the form of strings. You can query the user data with "==" (EQ), "!=" (NEQ), or "!"(NOT).</paragraph> <paragraph xml-lang="en-US" id="par_id3153124" role="paragraph" l10n="U" oldref="97">The following table lists user data variables and their meanings:</paragraph> @@ -297,7 +297,7 @@ </table> <paragraph xml-lang="en-US" id="par_id3150147" role="paragraph" l10n="U" oldref="128">For example, to hide a paragraph, text, or a section from a user with a specific initial, such as "LM", enter the condition: user_initials=="LM".</paragraph> - <paragraph xml-lang="en-US" id="hd_id3154115" role="heading" level="1" l10n="U" + <paragraph xml-lang="en-US" id="hd_id3154115" role="heading" level="2" l10n="U" oldref="46">Conditions and Database Fields</paragraph> <paragraph xml-lang="en-US" id="par_id3154128" role="paragraph" l10n="U" oldref="47">You can define conditions for accessing databases, or database fields. For example, you can check the contents of a database field from a condition, or use database fields in logical expressions. The following table lists a few more examples of using databases in conditions:</paragraph> <table id="tbl_id3154848"> @@ -358,10 +358,10 @@ <paragraph xml-lang="en-US" id="par_id3147123" role="paragraph" l10n="U" oldref="151">NOT Addressbook.Addresses.Company</paragraph> <paragraph xml-lang="en-US" id="par_id3147136" role="paragraph" l10n="U" oldref="152">If the COMPANY database field is empty, the condition is true and the paragraph is hidden.</paragraph> <paragraph xml-lang="en-US" id="par_id3150232" role="note" l10n="CHG" oldref="58">To display hidden paragraphs on the screen, you can choose <emph>Tools - Options - %PRODUCTNAME Writer - Formatting Aids</emph>, and clear the <emph>Fields: Hidden paragraphs</emph> check box.</paragraph> - <paragraph xml-lang="en-US" id="hd_id3145218" role="heading" level="1" l10n="U" + <paragraph xml-lang="en-US" id="hd_id3145218" role="heading" level="2" l10n="U" oldref="59">Examples of Conditions in Fields</paragraph> <paragraph xml-lang="en-US" id="par_id3145231" role="paragraph" l10n="U" oldref="60">The following examples use the Conditional text field, although they can be applied to any fields that can be linked to a condition. The syntax used for conditions is also used for the Hidden text, Hidden paragraph, Any record or Next record fields.</paragraph> - <paragraph xml-lang="en-US" id="hd_id3150311" role="heading" level="1" l10n="U" + <paragraph xml-lang="en-US" id="hd_id3150311" role="heading" level="2" l10n="U" oldref="61">To display conditional text based on the number of pages:</paragraph> <list type="ordered"> <listitem> @@ -383,7 +383,7 @@ <paragraph xml-lang="en-US" id="par_id3153086" role="listitem" l10n="U" oldref="137">Click <emph>Insert</emph>, and then click <emph>Close</emph>.</paragraph> </listitem> </list> - <paragraph xml-lang="en-US" id="hd_id3155814" role="heading" level="1" l10n="U" + <paragraph xml-lang="en-US" id="hd_id3155814" role="heading" level="2" l10n="U" oldref="67">To display conditional text based on a user-defined Variable</paragraph> <list type="ordered"> <listitem> @@ -418,7 +418,7 @@ </listitem> </list> <paragraph xml-lang="en-US" id="par_id3154389" role="paragraph" l10n="U" oldref="73">To edit the contents of the "Profit" variable, double-click the variable field.</paragraph> - <paragraph xml-lang="en-US" id="hd_id3155573" role="heading" level="1" l10n="U" + <paragraph xml-lang="en-US" id="hd_id3155573" role="heading" level="2" l10n="U" oldref="74">To display conditional text based on the contents of a database field:</paragraph> <paragraph xml-lang="en-US" id="par_id3155587" role="paragraph" l10n="CHG" oldref="144">The first part of this example inserts a space between the "First Name" and "Last Name" fields in a document, and the second part inserts text based on the contents of a field. This example requires that an address data source is registered with $[officename].</paragraph> <list type="ordered"> |