Summary

This command returns the product of the parameters.


Attributes

  • none

Parameters

  • two or more number commands

Example

<script scriptId="set-bsa">
    <body>
        <s:if>
            <s:and>
                <s:isSet>
                    <s:question>
                        <s:question path=".height"/>
                    </s:question>
                </s:isSet>
                <s:isSet>
                    <s:question>
                        <s:question path=".weight"/>
                    </s:question>
                </s:isSet>
            </s:and>
            <s:assign>
                <s:question path=".bsa"/>
                <s:toString>
                    <s:round decimals="2">
                    
                        <s:multiply>
                            <s:multiply>
                                <s:number value="0.425"/>
                                <s:multiply>
                                    <s:numberPath path=".height:value"/>
                                    <s:number value="0.01"/>
                                </s:multiply>
                            </s:multiply>
                            <s:multiply>
                                <s:number value="0.007184"/>
                                <s:numberPath path=".weight:value"/>
                            </s:multiply>
                        </s:multiply>
                        
                    </s:round>
                </s:toString>
            </s:assign>
            <s:if>
                <s:isSet>
                    <s:question>
                        <s:question path=".bsa"/>
                    </s:question>
                </s:isSet>
                <s:assign>
                    <s:question path=".bsa"/>
                    <s:string value=""/>
                </s:assign>
            </s:if>
        </s:if>
    </body>
    <target typeId="height" when="preprocess" shouldReconcile='true' />
    <target typeId="weight" when="preprocess" shouldReconcile='true' />
</script>



Need more help?

Please visit the Fountayn Contact Information page.