<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ndbx formatVersion="21" type="file" uuid="343ac8f0-3946-4dcf-aa4b-324bd9f46141">
    <property name="canvasHeight" value="1000"/>
    <property name="canvasWidth" value="1000"/>
    <property name="canvasX" value="0"/>
    <property name="canvasY" value="0"/>
    <node name="root" prototype="core.network" renderedChild="trim">
        <node name="number1" position="24.00,18.00" prototype="math.number">
            <port name="value" type="float" value="22.0"/>
        </node>
        <node name="string1" position="20.00,18.00" prototype="string.string">
            <port name="value" type="string" value="this string is 33 characters long"/>
        </node>
        <node name="trim" position="21.00,21.00" prototype="core.network" renderedChild="switch1">
            <node name="compare1" position="2.00,5.00" prototype="math.compare">
                <port name="value2" type="float" value="20.0"/>
                <port name="comparator" type="string" value="&gt;"/>
            </node>
            <node name="concatenate1" position="-1.00,4.00" prototype="string.concatenate">
                <port name="string2" type="string" value="..."/>
            </node>
            <node comment="prevents error with null strings" name="concatenate2" position="-1.00,1.00" prototype="string.concatenate">
                <port name="string2" type="string" value="!"/>
            </node>
            <node name="length1" position="3.00,1.00" prototype="string.length"/>
            <node name="number1" position="3.00,3.00" prototype="math.number"/>
            <node name="number2" position="3.00,-2.00" prototype="math.number"/>
            <node name="string1" position="-2.00,-2.00" prototype="string.string">
                <port name="value" type="string" value="hello my name is john cartan"/>
            </node>
            <node name="sub_string1" position="-1.00,3.00" prototype="string.sub_string">
                <port name="end" type="int" value="20"/>
                <port name="end_offset" type="boolean" value="true"/>
            </node>
            <node name="switch1" position="-2.00,7.00" prototype="list.switch"/>
            <port childReference="string1.value" description="" label="" name="string" range="value" type="string" value="hello my name is john cartan" widget="string"/>
            <port childReference="number2.value" description="" label="" name="max_length" range="value" type="float" value="0.0" widget="float"/>
            <conn input="length1.string" output="string1"/>
            <conn input="number1.value" output="length1"/>
            <conn input="compare1.value1" output="number1"/>
            <conn input="switch1.index" output="compare1"/>
            <conn input="switch1.input1" output="string1"/>
            <conn input="concatenate1.string1" output="sub_string1"/>
            <conn input="switch1.input2" output="concatenate1"/>
            <conn input="sub_string1.string" output="concatenate2"/>
            <conn input="concatenate2.string1" output="string1"/>
            <conn input="sub_string1.end" output="number2"/>
            <conn input="compare1.value2" output="number2"/>
        </node>
        <conn input="trim.max_length" output="number1"/>
        <conn input="trim.string" output="string1"/>
    </node>
</ndbx>
