<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="../../../design/description.xslt" type="text/xsl"?>
<node lang="en" type="DynamicNode.Lib.Basic.NSelection" assembly="NLibDefault" xmlns="http://dynamicnodes.mastersign.de/description">
  <caption>Selection</caption>
  <group>Basics</group>
  <description>Selects one of two values depending on a conditional value.</description>
  <inPorts>
    <port name="cond" caption="Condition">
      <type>bool</type>
      <type>byte</type>
      <type>short</type>
      <type>int</type>
      <type>long</type>
      <type>float</type>
      <type>double</type>
      <type>System.Decimal</type>
      <type>string</type>
      <type>System.Object</type>
      <description>
        Takes a conditional value to decide from which in port
        (<c>inTrue</c> or <c>inFalse</c>) incoming tokens are passed on to the out port.
      </description>
    </port>
    <port name="inTrue">
      <type>&lt;TElement&gt;</type>
      <description>
        Takes arbitrary tokens and passes them on to the out port if
        a value evaulated as &quot;true&quot; is present on the in port <c>cond</c>.
      </description>
    </port>
    <port name="inFalse">
      <type>&lt;TElement&gt;</type>
      <description>
        Takes arbitrary tokens and passes them on to the out port if
        a value evaulated as &quot;false&quot; is present on the in port <c>cond</c>.
      </description>
    </port>
  </inPorts>
  <outPorts>
    <port name="out">
      <type>TElement</type>
      <description>
        Passes tokens from the in ports <c>inTrue</c> and <c>inFalse</c>
        depending on the evaluation of the current value at the in port
        <c>cond</c>.
      </description>
    </port>
  </outPorts>
  <helpText>
    <p>
      This node selects the incoming tokens from <c>inTrue</c> or <c>inFalse</c>
      depending on the value present on the in port <c>cond</c> and
      passes them on to the out port <c>out</c>.
    </p>
    <info>
      The functionality of this node is inverse to the functionality
      of the node type <a href="DynamicNode.Lib.Basic.NSwitch.xml">Switch</a>.
    </info>
</helpText>
  <customArea>
    A schematic view of the current selection.
  </customArea>
</node>