|
An alias for MvFUNCTIONRETURN, exits a function and optionally returns a value.
Attributes
ExamplesIn this example if invalid parameters are passed to the the function returns without doing anything otherwise it returns the parameter value added together. Example:<MvFUNCTION NAME="add" PARAMETERS="num1, num2" STANDARDOUTPUTLEVEL="html,text" > <mvIF EXPR"{NOT l.num1 OR NOT l.num2}"> <MvFUNCTIONRETURN> </MvIF> <MvFUNCTIONRETURN VALUE="{ l.num1 + l.num1 }"> </MvFUNCTION> Optionally, if a function does not a return a value <MvFUNCTIONRETURN> may be omitted. Example:<MvFUNCTION NAME="salutation" PARAMETERS="name, title" STANDARDOUTPUTLEVEL="html,text" > Sincerely Yours,<br><br> <MvEVAL EXPR"{ l.name }"><br> <br> <MvEVAL EXPR"{ l.title }"><br> </MvFUNCTION>
|