Redirect a page based on set value from server connect

Hi,
Is there a way I can auto redirect a user based on a Server action which output a user status?
When user status is 1 the page will auto redirect to a specified page.

I have had a look at some similar posts. If we set value with a condition, how can I pick it up from the App side and redirect.

Here is my server side:

Thank you.

Community Page
Last updated: