Maybe OP is just looking to set the Boolean (ref) parameter from within the function. If it is the case, it can be done with the “Set By Ref Var” node: