<?xml version="1.0"?>
<flowgorithm fileversion="2.11">
    <attributes>
        <attribute name="name" value=""/>
        <attribute name="authors" value="burrin"/>
        <attribute name="about" value=""/>
        <attribute name="saved" value="2020-10-31 11:41:55 AM"/>
        <attribute name="created" value="YnVycmluO0RFU0tUT1AtNzQ5RDJJRjsyMDIwLTEwLTMxOzExOjEyOjIzIEFNOzI5MTQ="/>
        <attribute name="edited" value="YnVycmluO0RFU0tUT1AtNzQ5RDJJRjsyMDIwLTEwLTMxOzExOjQxOjU1IEFNOzY7MzAzNA=="/>
    </attributes>
    <function name="Main" type="None" variable="">
        <parameters/>
        <body>
            <declare name="lCase" type="String" array="False" size=""/>
            <declare name="sentence" type="String" array="False" size=""/>
            <input variable="sentence"/>
            <assign variable="lCase" expression="toLower(sentence)"/>
            <output expression="lCase" newline="True"/>
        </body>
    </function>
    <function name="ToLower" type="String" variable="lWord">
        <parameters>
            <parameter name="uWord" type="String" array="False"/>
        </parameters>
        <body>
            <declare name="letter" type="Integer" array="False" size=""/>
            <declare name="code" type="Integer" array="False" size=""/>
            <declare name="lWord" type="String" array="False" size=""/>
            <assign variable="lWord" expression="&quot;&quot;"/>
            <for variable="letter" start="0" end="len(uWord)-1" direction="inc" step="1">
                <assign variable="code" expression="ToCode(Char(uWord,letter))"/>
                <if expression="code &gt;64 AND code &lt;91">
                    <then>
                        <assign variable="code" expression="ToCode(Char(uWord,letter))+32"/>
                        <assign variable="lWord" expression="lWord &amp; ToChar(code)"/>
                    </then>
                    <else>
                        <assign variable="lWord" expression="lWord &amp; ToChar(code)"/>
                    </else>
                </if>
            </for>
        </body>
    </function>
</flowgorithm>
