Retreiving arguments - IUrixl/Kova GitHub Wiki
Console arguments
Retreive arguments given to the execution command.
NOTE: This can also be done using var command with the value of %1/0/...
Basic Syntaxis
<<- <argument chain>
Arguments
Argument | Definition |
---|---|
Argument Chain | A list of the variable's name where the arguments should be stored |
Example of use
define main -> {
<<- path
print "I was given %path% as my the path to use%escEM%"
}
Label arguments
Retreive arguments given to the function execution.
NOTE: This can also be done using var command with the value of %~1...
Basic Syntaxis
<- <argument chain>
Arguments
Argument | Definition |
---|---|
Argument Chain | A list of the variable's name where the arguments should be stored |
Example of use
define myFunction-> {
<- num1 num2
var# sum num1 + num2
}