UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

evaluate

Previous topic: Next topic:
inactiveTopic evaluate topic started 6/19/1999; 5:32:00 PM
last post 6/19/1999; 5:32:00 PM
user Brent Simmons - evaluate  blueArrow
6/19/1999; 5:32:00 PM (reads: 9943, responses: 0)
Syntax evaluate (string)

Params string is a string value.

Action Compiles and interprets string as a Frontier script.

Returns Returns the value of the string when it is run as a script

Examples evaluate ("msg (\"Hello, Frontier addict!")")

   » true

Returns the result of string argument being executed as a script.

if dialog.ask ("Enter script:", @s){evaluate (s)}

   » true

Errors A variety of errors can be generated if string is not a valid Frontier script, depending on what is wrong with it.

Notes The evaluate verb is useful primarily in situations where you are building elements of a script dynamically, storing them in the Object Database or in a variable and wish to execute the result.

See Also runSelection


Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X