<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/da/onlinemanual/000008" xml:lang="en">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">To use parameters in a condition script</Title>
		<Keyword ContextSensitive="No"><Level1>Exchange parameters</Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>Exchange condition script</Level1>
		</Keyword>
	</Header>
	<GeneralSection><Paragraph class="Default">Parameters are used to define an <Link href="/baanerp/da/glossary/glossary#000001" role="glossary">ASCII file</Link> field in a condition script.</Paragraph>
		<Paragraph class="Default">The ASCII file fields of a record that must be imported, are not automatically defined in a condition script. To use the value of an ASCII file field, you must use that field as a parameter in the condition script.</Paragraph>
		<ExampleSection><SectionTitle>
                                 Example
                              </SectionTitle>
			<Paragraph class="Default">An ASCII file contains ASCII file fields fld1, fld2 and fld3. Fields fld2 and fld3 are alphanumeric fields. A table contains fields fld1 and tfld. Field tfld is a field of string type. If you want to assign the combination of the fields fld2 and fld3 to table field tfld, you must use a condition that contains:</Paragraph>
			<Paragraph class="Default"><Code>return( fld2 &amp; fld3)</Code>
			</Paragraph>
			<Paragraph class="Default">To make this possible you must define two alphanumeric parameters, fld2 and fld3.</Paragraph>
		</ExampleSection>
		<Note><SectionTitle>
                                 Note
                              </SectionTitle>
			<List><ListItem>The parameter name must be identical to the name of the ASCII file field in the record it refers to.</ListItem>
				<ListItem>The data type of the parameter must also be identical to that of the ASCII file field.</ListItem>
			</List>
		</Note>
	</GeneralSection>
	<RelatedTopics><SectionTitle>
                              Related topics
                           </SectionTitle>
		<RelTopic><Link href="/baanerp/da/onlinemanual/000010" role="manual">To use audits in the exchange module</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
