String variable existence check in storage.
Syntax |
bool exists_string(const string &in name) |
---|---|
name |
Variable name |
Result |
Returns true if existing, false otherwise |
Esempio di utilizzo:
bool execute(shell::object @shell, const string &in cmdline) { // Verify existence of variable "my_var" bool f_my_var = shell.storage.exists_string("my_var"); } |