We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3d5597 commit 42c8facCopy full SHA for 42c8fac
addons/dialogic/Modules/Variable/event_variable.gd
@@ -91,7 +91,7 @@ func _execute() -> void:
91
92
if operation == Operations.SET:
93
result = interpreted_value
94
- elif (typeof(original_value) == Variant.Type.TYPE_STRING and _value_type == VarValueType.STRING and interpreted_value and operation == Operations.ADD):
+ elif (DialogicUtil.get_variable_type(name) == DialogicUtil.VarTypes.STRING and _value_type == VarValueType.STRING and interpreted_value and operation == Operations.ADD):
95
result = original_value + interpreted_value
96
elif not str(original_value).is_valid_float() or not str(interpreted_value).is_valid_float():
97
printerr("[Dialogic] Set Variable event failed because one value wasn't a float! [", original_value, ", ",interpreted_value,"]")
0 commit comments