Inline Function nested ifs bugfix for assigning return statements