Private
Public Access
Added CreateValue Method
This commit is contained in:
1 parent
227580563e
commit
17f3f2aae4
1 file changed
+6
+6
@@ -30,6 +30,12 @@ namespace Advanced_Software_Engineering.Verbs.Value {
|
||||
}
|
||||
}
|
||||
|
||||
public static IValue CreateValue(Drawer drawer, string value) {
|
||||
value = SettingsAndHelperFunctions.Strip(value);
|
||||
if (drawer.CheckVariableExists(value)) return new VariableValue(drawer, value);
|
||||
else return ValueHelper.ConvertToIValue(value);
|
||||
}
|
||||
|
||||
public static IValue CreateValue(bool b) {
|
||||
return new BoolValue(b);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user