mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add MVP set of WI manipulation commands
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user