I havent used Fungus, but looking at the code in github, the easier way is to probably use the GetBooleanVariable, GetIntegerVariable etc methods:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
publicvirtualboolGetBooleanVariable(stringkey)
{
varvariable=GetVariable<BooleanVariable>(key);
if(variable!=null)
{
returnGetVariable<BooleanVariable>(key).Value;
}
else
{
returnfalse;
}
}
So in FC, you have to add the ‘Flowchart.GetBooleanVariable’ method node. and of course set the key name of the variable you want to get.
Let me know if that works for you. Thanks.