onSetGlobalVar method
Implementation
Future<SilentActionResult> onSetGlobalVar(
NodeSpec action, ActionContext context) async {
final key = action.props["key"];
final value = action.props["value"];
if (key != null && key is String) {
if (value != null) {
Lowder.globalVariables[key] = value;
} else {
Lowder.globalVariables.remove(key);
}
}
return SilentActionResult(true);
}