Immediately stops the execution of a formula and returns the specified value. This is useful when you only want the remainder of the formula to be executed only if certain conditions are True.
@Return( value )
value
The value you want returned. You can specify another @function such as @Error, or a text string such as "Formula stopped," or a Boolean value (True or False). If you don't want anything returned, use the null string ("").
result
Returns value.
@Return is most useful in field formulas, agents that run formulas, and toolbar buttons. Generally, you use it with @If to determine whether to perform @Return or to perform one or more other statements.
@Return should not be used in column formulas.
@If(@Prompt([YesNo];"Continue?";"Do you want to continue reading your mail?");@Command([NavNext]);@Return(""))
@If(@Environment(OrderNumber)="";@SetEnvironment("OrderNumber";
"0");@Return(@Environment("OrderNumber")))
lookup := @DbLookup("" : "" ; "serverName" : "fileDirectory\\databaseName.nsf"; "People" ; "Jackie Brown"; 3);
@If(@IsError(lookup); @Return(@Prompt([OK];"Error";"Error locating the requested job title. Aborting lookup")); lookup)
End statement of LotusScript® language
Exit statement of LotusScript language