FF-1718: new flow element variable exists

This commit is contained in:
John Andrews
2024-08-12 12:08:37 +12:00
parent df1dfc0c57
commit 7e0da69fe4
3 changed files with 3 additions and 3 deletions

View File

@@ -41,16 +41,16 @@ public class VariableExists: Node
if (args.Variables.TryGetValue(variable, out var value) == false)
{
args.Logger?.ILog("Variable does not exist");
args.Logger?.ILog($"Variable '{variable}' does not exist");
return 2;
}
if (value == null)
{
args.Logger?.ILog("Variable exists but is null");
args.Logger?.ILog($"Variable '{variable}' exists but is null");
return 2;
}
args.Logger?.ILog("Variable exists and is not null");
args.Logger?.ILog($"Variable '{variable}' exists and is not null");
return 1;
}
}