Summary

This command returns the modulus of the parameter.


Attributes

  • none

Parameters

  • two or more number commands

Example

<script scriptId="AddAdditionalCycles">
    <body>
        <s:if>
            <s:and>
                <s:ne>
                    <s:numberPath path=":id"/>
                    <s:numberPath path="/cycle8/d15c8/restageSumd15c8/restaged15c8
                    .addCyclinf:id"/>
                </s:ne>
                <s:eq>
                    <s:numberPath path=":value"/>
                    <s:number value="1"/>
                </s:eq>
            </s:and>
            <s:if>
                <s:eq>
                
                    <s:mod operator="%">
                        <s:count>
                            <s:parent>
                                <s:form path="/addCycleContainer"/>
                            </s:parent>
                        </s:count>
                        <s:number value="2"/>
                    </s:mod>
                    
                    <s:number value="0"/>
                </s:eq>
                <s:createForm>
                    <s:parent>
                        <s:form path="/addCycleContainer" type="form"/>
                    </s:parent>
                    <s:type>
                        <s:string value="cycleOdd"/>
                    </s:type>
                    <s:name>
                        <s:concat>
                            <s:string value="Cycle "/>
                            <s:toString>
                                <s:add operator="+">
                                    <s:count>
                                        <s:parent>
                                            <s:form path="/addCycleContainer"/>
                                        </s:parent>
                                    </s:count>
                                    <s:number value="9"/>
                                </s:add>
                            </s:toString>
                        </s:concat>
                    </s:name>
                    <s:alias>
                        <s:concat>
                            <s:string value="cycle"/>
                            <s:toString>
                                <s:add operator="+">
                                    <s:count>
                                        <s:parent>
                                            <s:form path="/addCycleContainer"/>
                                        </s:parent>
                                    </s:count>
                                    <s:number value="9"/>
                                </s:add>
                            </s:toString>
                        </s:concat>
                    </s:alias>
                    <s:allowDuplicates>
                        <s:eq>
                            <s:number value="1"/>
                            <s:number value="1"/>
                        </s:eq>
                    </s:allowDuplicates>
                </s:createForm>
                <s:createForm>
                    <s:parent>
                        <s:form path="/addCycleContainer" type="form"/>
                    </s:parent>
                    <s:type>
                        <s:string value="cycleEven"/>
                    </s:type>
                    <s:name>
                        <s:concat>
                            <s:string value="Cycle "/>
                            <s:toString>
                                <s:add operator="+">
                                    <s:count>
                                        <s:parent>
                                            <s:form path="/addCycleContainer"/>
                                        </s:parent>
                                    </s:count>
                                    <s:number value="9"/>
                                </s:add>
                            </s:toString>
                        </s:concat>
                    </s:name>
                    <s:alias>
                        <s:concat>
                            <s:string value="cycle"/>
                            <s:toString>
                                <s:add operator="+">
                                    <s:count>
                                        <s:parent>
                                            <s:form path="/addCycleContainer"/>
                                        </s:parent>
                                    </s:count>
                                    <s:number value="9"/>
                                </s:add>
                            </s:toString>
                        </s:concat>
                    </s:alias>
                    <s:allowDuplicates>
                        <s:eq>
                            <s:number value="1"/>
                            <s:number value="1"/>
                        </s:eq>
                    </s:allowDuplicates>
                </s:createForm>
            </s:if>
        </s:if>
    </body>
    <target action="update" typeId="addCyclinf" when="after" shouldReconcile='true' />
</script>



Need more help?

Please visit the Fountayn Contact Information page.