Add MVP set of WI manipulation commands

This commit is contained in:
Cohee
2023-12-01 01:50:10 +02:00
parent 4e634f00ec
commit fe355c5d4f
2 changed files with 154 additions and 2 deletions

View File

@ -95,6 +95,10 @@ function decrementGlobalVariable(name) {
* @returns {string} Variable value or the string literal
*/
export function resolveVariable(name) {
if (name === undefined) {
return '';
}
if (existsLocalVariable(name)) {
return getLocalVariable(name);
}