CustomUI node c# output

Is there a way to assign value/data to an outport without doing the BuidlAssignment? Or if you can define an AssociativeNode somehow that carries the data to use with BuidlAssignment? I really don’t want to deal with the BuildFunctionCall in my case, but I need to use the custom UI

Something like this just to get the general idea across:
public override IEnumerable BuildOutputAst(List inputAstNodes)
{
object test;
return new[] { AstFactory.BuildAssignment(GetAstIdentifierForOutputIndex(0), test) };
}

You always have to override the “BuildOutputAst” function to change the output. You can directly return primitive objects (bool, int, double, null, str) with the correct built assignment. If you want to return anything else, you’ll need to make a function call.