Difference between revisions of "Using $S in PRINT Templates"

From VistApedia
Jump to: navigation, search
 
 
Line 7: Line 7:
  
 
$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.
 
$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.
 +
 +
[[Category:FileMan FUNCTION]]

Latest revision as of 14:40, 29 June 2007

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.