|
@@ -186,9 +186,9 @@ namespace InABox.Scripting
|
|
|
return prop != null ? prop.Value : defaultvalue;
|
|
|
}
|
|
|
|
|
|
- public bool Execute(string classname = "Module", string methodname = "Execute", object[] parameters = null)
|
|
|
+ public bool Execute(string classname = "Module", string methodname = "Execute", object[] parameters = null, bool defaultResult = false)
|
|
|
{
|
|
|
- var result = false;
|
|
|
+ var result = defaultResult;
|
|
|
|
|
|
if (!compiled.HasValue)
|
|
|
{
|
|
@@ -237,10 +237,6 @@ namespace InABox.Scripting
|
|
|
property.Value = prop.GetValue(obj);
|
|
|
}
|
|
|
}
|
|
|
- else
|
|
|
- {
|
|
|
- result = false;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
return result;
|