Browse Source

Variable substitution works in Set Variable (String) command

master
Christopher 8 years ago
parent
commit
47eae05b5a
  1. 3
      Assets/Fungus/Scripts/Commands/SetVariable.cs
  2. 803
      Assets/Tests/StringSubstitution/StringSubstitutionTests.unity

3
Assets/Fungus/Scripts/Commands/SetVariable.cs

@ -133,6 +133,9 @@ namespace Fungus
StringVariable lhs = (variable as StringVariable);
string rhs = stringData.Value;
var flowchart = GetFlowchart();
rhs = flowchart.SubstituteVariables(rhs);
switch (setOperator)
{
default:

803
Assets/Tests/StringSubstitution/StringSubstitutionTests.unity

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save