Difference between revisions of "Command:Execute"

From Lavish Software Wiki
Jump to navigation Jump to search
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Syntax ==
 
== Syntax ==
 +
{{CMD-DR|Execute|Beginner|Beginner|Newbie|Beginner}}
 
<tt>Execute <command></tt>
 
<tt>Execute <command></tt>
  
Line 8: Line 9:
 
=== Example 1 ===
 
=== Example 1 ===
 
;Input
 
;Input
  declare MyCommand string global "echo My eyes! The goggles -- they do nothing!"
+
  variable string MyCommand "echo My eyes! The goggles -- they do nothing!"
 
  execute ${MyCommand}
 
  execute ${MyCommand}
 
;Output
 
;Output
Line 14: Line 15:
  
 
== See Also ==
 
== See Also ==
 +
*[[LavishScript:Commands|Commands]]
 +
 +
[[Category:LavishScript]]
 +
[[Category:LavishScript Commands]]

Latest revision as of 18:34, 20 March 2012

Syntax

Command Difficulty Rating
Execute
Usage Beginner
Level of Understanding Beginner
Computer Savvy Newbie
Logic Beginner

Execute <command>

Description

Executes a command, after parsing variables. This can be used, for example, to execute a command stored in a variable, or to cause commands that normally prevent the system from parsing variables in its parameters to do so.

Examples

Example 1

Input
variable string MyCommand "echo My eyes! The goggles -- they do nothing!"
execute ${MyCommand}
Output
My eyes! The goggles -- they do nothing!

See Also