Closed taltamir closed 2 hours ago
You have not used the correct syntax to check the variable. In the set flow variable plugin help pop up, check the syntax that should be used to access the variable.
Variable to set.
Example
transcodeStage
You can then check this in the 'Check Flow Variable' plugin
{{{args.variables.user.transcodeStage}}}
Check flow variable
can be used to check hundreds of different fields on the args
object so that’s the reason it’s like that.
@HaveAGitGat Thank you. I apologize for my error.
But in that case there is an issue with the logfile wording. which is both misleading and inconsistent.
when using the correct syntax, the evaluation line in the log refers to the value correctly, but incorrectly states that the variable is named the contents of its "value". (it does NOT do so in multiple other lines. only evaluator line gets it wrong).
Variable true of value true matches condition == true
should say instead
Variable {{{args.variables.user.cvideo}}} of value true matches condition == true
every other line in the log uses Variable for variable name and Value for value. But that one line where evaluation happens mixes them up. Which is misleading when trying to debug why things are not working.
when trying to evaluate a wrongly named variable it does the opposite. (hence inconsistant) It refers to variable name correctly, but refers to value as the variable name:
Variable cvideo of value cvideo does not match condition == true
should instead say
Variable cvideo of value "" does not match condition == true
a nonexisting variable should have a value of "" not a value of its variable name.
Describe the bug evaluate flow variable is broken in v2.27.02. the evaluator incorrectly uses their name and not value.
To Reproduce import the json testflow.json
this results in:
The error is in
targetValue = cvideo
. the actual target value istrue
as can be seen in the json and in screenshotsExpected behavior it should do
targetValue = true
nottargetValue = cvideo
full log output output from worker.txt
Additional Screenshots