Difference between revisions of "ConsolePrint"

(Created page with "''New to Analytica 5.3'' == ConsolePrint( message ) == Prints «message» to the Typescript Window. Returns «message». This function can be useful during debuggi...")
 
Line 1: Line 1:
 +
{{ReleaseBar}}
 
''New to [[Analytica 5.3]]''
 
''New to [[Analytica 5.3]]''
  
== ConsolePrint( message ) ==
+
== ConsolePrint( message{{Release|5.5||:...}} ) ==
  
 
Prints «message» to the [[Typescript Window]].  Returns «message».
 
Prints «message» to the [[Typescript Window]].  Returns «message».
Line 8: Line 9:
  
 
Because it returns its parameter, it is convenient to just insert it around an intermediate value expression when you want to see that expression.  
 
Because it returns its parameter, it is convenient to just insert it around an intermediate value expression when you want to see that expression.  
 +
 +
{{Release|5.5||You can also print multiple items (of different dimensionalities) as separate parameters, such as:<code>
 +
:[[ConsolePrint]]( "A=", A, ", B=", B )</code>
 +
which works without combining the indexes of A and B.}}
  
 
To view the [[Typescript Window]], press F12.
 
To view the [[Typescript Window]], press F12.

Revision as of 21:31, 1 October 2020



Release:

4.6  •  5.0  •  5.1  •  5.2  •  5.3  •  5.4  •  6.0  •  6.1  •  6.2  •  6.3  •  6.4  •  6.5  •  6.6


New to Analytica 5.3

== ConsolePrint( message

... ) ==

Prints «message» to the Typescript Window. Returns «message».

This function can be useful during debugging when inserting a MsgBox would require your input too many times. You can instead log info to the typescript console without requiring user input.

Because it returns its parameter, it is convenient to just insert it around an intermediate value expression when you want to see that expression.

{{{3}}}

To view the Typescript Window, press F12.

See Also

Comments


You are not allowed to post comments.