// Script showing how passing arguments
// Arguments:  
//		(no argument)
//
// Author: LoopToGo
//
// Description  : 	Example on how to use loadScript and loadScriptDynamic (and passing them arguments)



variable a1 1
variable a2 "Hello my friends"
variable a3 3 + 5
variable a4 3.5


loadScript testArgumentReceiver.txt // This is done when the script is loaded (not at runtime). This is fine because there is no arguments and the filenme is not a variable!

print "The error message at the beginning is normal." 
print "It is to show what happens when trying to pass arguments to this script"
print "Since it's detected when loading the script, it will appear before the script is actually executed"

// The next line will create an ERROR message. The ERROR message will be shown first because it is catched when loading the script (not at runtime)
loadScript testArgumentReceiver.txt $a1 $a2

loadScriptDynamic testArgumentReceiver.txt $a1 $a2 $a3 $a4 "From loadScriptDynamic"
