Difference between revisions of "Command:Execute"

From Lavish Software Wiki
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 9: 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 18: Line 18:
  
 
[[Category:LavishScript]]
 
[[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