>The "merge()" function evaluates commands and expressions embedded in
>a string and replaces them with the resulting value.  For
>compatibility with SuperCard/Flamethrower, expressions start with "[["
>and end with "]]".  Statements are delimited with "<%" and "%>".  You
>must use "return" with statement to return a value:
>put merge("3 + 5 is [[3 + 5]] and 2 + 2 is <?return 2 + 2?>")
>
>So What's a 'statement"? and is there a typo in the last line?

Not sure about "statements"

Based on tests, the last line isn't a typo, but the prior line is.

3 + 5 is [[3 + 5]] and 2 + 2 is <?return 2 + 2?>
[[the height of this stack]]
[[the directory]]

correctly shows
3 + 5 is 8 and 2 + 2 is 4

but
3 + 5 is [[3 + 5]] and 2 + 2 is <%return 2 + 2%>

returns
3 + 5 is 8 and 2 + 2 is <%return 2 + 2%>

Also: Scott--

3 + 5 is [[3 + 5]] and 2 + 2 is <?return 2 + 2?>
[[the height of this stack]]  
[[the directory]]

returns

3 + 5 is 8 and 2 + 2 is 4
[[the hei/Mac HD/Desktop Folder/MetaCard 2.4A1]]
/Mac HD/Desktop Folder/MetaCard 2.4A1

regards,

geoff


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to