Private
Public Access
Added a function that allows checking if items exist
This commit is contained in:
1 parent
50bb6811cd
commit
6f9083ab6f
1 file changed
+4
@@ -196,5 +196,9 @@ namespace Advanced_Software_Engineering {
|
|||||||
public IValue GetVariable(string name) {
|
public IValue GetVariable(string name) {
|
||||||
return variables[name];
|
return variables[name];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool CheckVariableExists(string name) {
|
||||||
|
return variables.ContainsKey(name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user