Using $S in PRINT Templates

From VistApedia
Revision as of 20:23, 22 June 2007 by DavidWhitten (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

There is a MUMPS function named $SELECT, (which can be shortened to $S) as explained by Ed de Moel on this MUMPS By Example [$SELECT Page].

Similarly, there is a $S FUNCTION used in FileMan TEMPLATES, most commonly in PRINT templates, but available for INPUT templates, and SORT templates.

There is a at least one difference between $SELECT in MUMPS and $S in FileMan. $SELECT in MUMPS will evaluate the "conditions" in turn, until it finds one that is true, then return the "result" associated with that condition.

$S in FileMan will evaluate the "conditions" in turn, even after it finds one that is true, then return the "result" associated with the first condition that was true.