mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-02-15 01:38:27 -06:00
FF-1718: new flow element variable exists
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user