<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/ti/onlinemanual/000813" xml:lang="en">
   <Header>
      <Title>Defining Constraints</Title>
      <Keyword type="header" order="d1e2056242">
         <Level1>Defining</Level1>
         <Level2>constraints</Level2>
      </Keyword>
      <Keyword type="header" order="d1e2056247">
         <Level1>Constraints</Level1>
         <Level2>defining</Level2>
      </Keyword>
   </Header>
   <GeneralSection>
      <List>
         <ListIntro>If you define <Link href="/baanerp/ti/glossary/glossary#000093" role="glossary">constraints</Link>, you must define
		  the constraint lines in a specific syntax. A constraint consists of the
		  following components:</ListIntro>
         <ListItem> 
            <GUIRef href="/baanerp/ti/domains/grt.cpar#if" role="option">If</GUIRef> (condition)</ListItem>
         <ListItem> 
            <GUIRef href="/baanerp/ti/domains/grt.cpar#then" role="option">Then</GUIRef> (action)</ListItem>
         <ListItem> 
            <GUIRef href="/baanerp/ti/domains/grt.cpar#else" role="option">Else</GUIRef> (action) (not
		  mandatory)</ListItem>
      </List>
      <ExampleSection>
         <SectionTitle>Example</SectionTitle>
         <Paragraph>If the color of the seat is red Then the material of the seat
		  is cotton Else the material of the seat is linen.</Paragraph>
      </ExampleSection>
      <List>
         <ListIntro>In the <GUIRef href="/baanerp/ti/domains/grt.cpar#if" role="option">If</GUIRef> component of the constraint you formulate one of the following:</ListIntro>
         <ListItem>A comparison between an aspect and a value.</ListItem>
         <ListItem>A comparison between a calculation result and a value.
		  (Depending on whether the result of the comparison is True or False, the
		  constraint executes the <GUIRef href="/baanerp/ti/domains/grt.cpar#then" role="option">Then</GUIRef> component or the <GUIRef href="/baanerp/ti/domains/grt.cpar#else" role="option">Else</GUIRef> component.)</ListItem>
      </List>
      <List>
         <ListIntro>An action ( <GUIRef href="/baanerp/ti/domains/grt.cpar#then" role="option">Then</GUIRef> or <GUIRef href="/baanerp/ti/domains/grt.cpar#else" role="option">Else</GUIRef>)
		  describes:</ListIntro>
         <ListItem>The selection of a value for an aspect.</ListItem>
         <ListItem>The exclusion of a number of possible values, depending on the
		  values of preceding aspects.</ListItem>
      </List>
   </GeneralSection>
   <GeneralSection>
      <SectionTitle>Specific menu</SectionTitle>
      <Paragraph>If you click Make Sequence Number Consecutive on the <Link href="/baanerp/tc/glossary/glossary#specific" role="glossary">appropriate</Link> menu, the
		sequence numbers of the constraint lines are consecutive. For example, if you
		have two constraint lines with sequence numbers 1 and 3, and you carry out this
		command, the constraint lines receive the sequence numbers 1 and 2.</Paragraph>
   </GeneralSection>
   <GeneralSection>
      <Paragraph>If you start the <GUIRef href="/baanerp/ti/grt/tigrt0586m000" role="session">Constraints (translated) (tigrt0586m000)</GUIRef> session from the <Link href="/baanerp/tc/glossary/glossary#specific" role="glossary">appropriate</Link> menu, you see a
		more user-friendly translation of the constraint.</Paragraph>
   </GeneralSection>
   <RelatedTopics>
      <SectionTitle>Related topics</SectionTitle>
      <RelTopic>
         <Link href="/baanerp/ti/onlinemanual/000123" role="manual">Setting up a classification structure in GRT</Link>
      </RelTopic>
   </RelatedTopics>
</ManualTopic>