Need help with a stamina system

Make a function that checks what the current stamina is.

If the stamina is less than your number, set a bool.

Use that bool as input to a branch at the beginning of each of the input actions to decide whether or not the rest of the code will be executed.