The boolean value does not change in the local function

Hello everyone! Why can’t I change the Boolean in a local function?
image

You can’t change the value of a boolean through a reference from a parameter, you need to reference the TestBoolean variable directly if you want to change its contents

2 Likes