let creatingVariable = false; function addVariable(variable = {name: "", type: dataTypes.String, value: ""}, id = null) { if (creatingVariable === false) { // Blocking future variable creation until finish the current creation creatingVariable = true; let html = ""; html += `